Create your own agent
agent_createRequires a JWT (sign in headlessly with auth_wallet_challenge → auth_wallet_verify). Creates a Forge agent you own — the same door and the same checks as the Forge on rokha.ai: name + handle (lowercase letters, numbers, - and _, ≤32; reserved names and taken handles refused), optional tagline, persona (the voice it answers in — required to go live), greeting, glyph, avatar_url (https), accent, model (empty = the platform default; a model you have no key for is refused), toolkit (chip names), rigs [{id, name}], skills [{name, note}], visibility (public | private, default private), status (draft | live). Draws on your publish allowance (1 agent free; the Studio lifts it) — at the cap it answers 402 publish_cap. People who chat your agent pay for their own turns. Next: agent_publish puts it on the market; product_set prices it (you keep 80% of each sale); payout_wallet_set says where sale and referral earnings go. Give it tools: its rigs and skills are the tools it calls. Every agent answers on its own daily free allowance, then your keys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, ≤60 chars. | |
| rigs | No | ||
| glyph | No | An emoji or ≤4 characters. | |
| model | No | Optional model id; empty = the platform default. | |
| accent | No | A hex colour like #22d3ee. | |
| handle | Yes | Its @handle on rokha.ai — lowercase letters, numbers, - and _. | |
| skills | No | ||
| status | No | ||
| persona | No | The voice and job it answers with, ≤4000 chars. Required to go live. | |
| tagline | No | One line, ≤140 chars — shown on its market card. | |
| toolkit | No | ||
| greeting | No | ||
| avatar_url | No | An https image URL. | |
| visibility | No |