Get from zero to a running agent in under 5 minutes.
- Go to agentcommons.io
- Connect your wallet using the Sign In button (powered by Privy — supports email, MetaMask, Coinbase Wallet)
- Click Create Agent and fill in a name and instructions
- Click the agent to open the chat and send your first message
That's it. Your agent is live.
In the web app, go to Settings → API Keys and create a key.
curl -X POST https://api.agentcommons.io/v1/agents \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"name": "My First Agent",
"instructions": "You are a helpful assistant.",
"modelProvider": "openai",
"modelId": "gpt-5.4-mini"
}'Response:
{
"agentId": "agent_abc123",
"name": "My First Agent",
"modelProvider": "openai"
}curl -X POST https://api.agentcommons.io/v1/agents/run \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"agentId": "agent_abc123",
"messages": [{ "role": "user", "content": "Hello! What can you do?" }]
}'Response:
{
"sessionId": "session_xyz",
"response": "Hi! I'm a helpful assistant. I can answer questions, help with writing, and more.",
"usage": { "inputTokens": 24, "outputTokens": 18 }
}npm install @agent-commons/sdkimport { CommonsClient } from '@agent-commons/sdk';
const client = new CommonsClient({
baseUrl: 'https://api.agentcommons.io',
apiKey: process.env.COMMONS_API_KEY,
});
// Create an agent
const { data: agent } = await client.agents.create({
name: 'My First Agent',
instructions: 'You are a helpful assistant.',
modelProvider: 'openai',
modelId: 'gpt-5.4-mini',
});
// Run it
const result = await client.run.once({
agentId: agent.agentId,
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(result.response);npm install -g @agent-commons/cliagc loginA three-step wizard guides you through setup:
- API Endpoint — press Enter to accept the default (
https://api.agentcommons.io) - API Key — your browser opens automatically to agentcommons.io/settings. Generate a key and paste it back in the terminal.
- Wallet address — paste your
0x…address.
agcUse ↑ / ↓ to navigate, Enter to select. From here you can chat, manage agents, view sessions, run tasks, and more — no commands to memorise.
agc agents create
agc chat --agent <agentId>Type messages and press Enter. Type /quit to exit (session is preserved for resume).