rynjer-agent-sdk
v1.0.0
Published
Official SDK for Rynjer Agent Autonomous Authentication
Maintainers
Readme
Rynjer Agent SDK
Official TypeScript SDK for Rynjer Agent Autonomous Authentication.
Installation
```bash npm install rynjer-agent-sdk ```
Quick Start
```typescript import { RynjerAgentClient } from 'rynjer-agent-sdk';
// Initialize client (generates keys automatically) const client = new RynjerAgentClient({ baseUrl: 'https://www.rynjer.com', keyStorePath: './.agent_keys' });
// Register agent const { agentId, registrationCode } = await client.register({ agentName: 'My AI Agent', agentVersion: '1.0.0' });
console.log('Registration code:', registrationCode); console.log('User should visit: https://www.rynjer.com/settings/agents/bind');
// After user binding, create API key const { apiKey } = await client.createApiKey({ keyName: 'Production Key', scopes: ['generate', 'credits:read'], expiresInDays: 90 });
// Use API key for requests const balance = await client.getBalance(); console.log('Credits balance:', balance);
// Generate content const result = await client.generate({ model: 'nano-banana-pro', prompt: 'A beautiful sunset over mountains' }); console.log('Generated:', result.data.url); ```
Features
- 🔐 Automatic Ed25519 key pair generation and management
- 🔑 Long-lived API keys (up to 365 days)
- ⚡ Built-in replay attack protection
- 🛡️ Secure signature verification
- 📦 TypeScript support out of the box
- 🔄 Automatic token refresh
API Documentation
See https://www.rynjer.com/docs/api for full API documentation.
License
MIT
