SDKs Overview

MachineAuth provides official SDKs for easy integration.

Available SDKs

| Language | Package | Status | |----------|---------|--------| | TypeScript | @machineauth/sdk | Stable | | Python | machineauth | Stable | | Go | github.com/mandarwagh9/machineauth | Coming Soon |

Installation

# TypeScript
npm install @machineauth/sdk

# Python
pip install machineauth

Quick Example

import { MachineAuthClient } from '@machineauth/sdk';

const client = new MachineAuthClient({
  baseUrl: 'https://auth.yourdomain.com',
  clientId: 'cid_abc123...',
  clientSecret: 'cs_secret...',
});

// Get token
const token = await client.getToken({ scope: 'read write' });

// Use token
const agents = await client.listAgents();

Features

All SDKs provide:

  • Automatic token management
  • Type-safe interfaces
  • Promise/async support
  • Error handling
  • Configurable timeouts

Next Steps