Available on Developer plan and above. Upgrade at app.imarobot.ai.
Install
Quick start
Generate a key pair
The SDK includes a CLI helper so you don’t need to touch OpenSSL:- Private key — keep secret. Used by your agent process to sign requests.
- Public key — upload to ImaRobot during
registerAgent(). Safe to commit.
API
new ImaRobotAgent(options)
| Option | Type | Required | Description |
|---|---|---|---|
apiKey | string | ✓ | Your sk_live_ or sk_test_ API key |
privateKeyPem | string | ✓ | RS256 private key PEM string |
baseUrl | string | — | Default: https://api.imarobot.ai |
client.registerAgent(options)
{ agentId, name, status, expiresAt }
client.issueToken(agentId)
client.revokeAgent(agentId, options?)
TOKEN_REVOKED.