/install agents-infra
AgentOS — Infrastructure for AI Agents\r
\r
Everything an agent needs: phone, email, compute, domains, voice calling, wallets, and 3500+ skills. Pay with USDC on Solana or Base via x402.\r
\r
CLI: npm i -g @agntos/agentos (or npx @agntos/agentos)\r
API: https://agntos.dev\r
Source: https://github.com/0xArtex/AgentOS\r
\r
CLI (recommended)\r
\r Use the CLI for cleaner context and simpler commands:\r \r
# Phone\r
agentos phone search --country US # Search numbers (free)\r
agentos phone buy --country US # Buy a number ($3)\r
agentos phone sms --id ID --to +1... --body "hi" # Send SMS ($0.05)\r
agentos phone call --id ID --to +1... --tts "hello" # Voice call ($0.10)\r
\r
# Email (E2E encrypted)\r
agentos email create --name agent --wallet SOL_PUBKEY # Create inbox ($2)\r
agentos email read --id INBOX_ID # Read messages ($0.02)\r
agentos email send --id ID --to [email protected] --subject "Hi" --body "..." # Send ($0.08)\r
agentos email threads --id INBOX_ID # List threads ($0.02)\r
\r
# Compute\r
agentos compute plans # List VPS plans (free)\r
agentos compute deploy --name my-vps --type cx23 # Deploy VPS (from $8/mo)\r
agentos compute list # List servers\r
agentos compute delete --id SERVER_ID # Delete server\r
\r
# Domains\r
agentos domain check --name example.dev # Check availability (free)\r
agentos domain pricing --name example # Get pricing (free)\r
agentos domain buy --name example.dev # Register domain\r
\r
# Wallet\r
agentos wallet keygen # Generate keypair (free)\r
agentos wallet create --agent 0xADDR # Create smart wallet (free)\r
agentos wallet status 0xWALLET # Check status (free)\r
\r
# Info\r
agentos pricing # All service prices\r
agentos health # API status\r
```\r
\r
## API Quick Reference\r
\r
All endpoints also available as direct HTTP calls. CLI is recommended — less tokens, cleaner output.\r
\r
| Service | Endpoint | Cost (USDC) |\r
|---------|----------|-------------|\r
| **Phone** | | |\r
| Search numbers | `GET /phone/numbers/search?country=US` | Free |\r
| Provision number | `POST /phone/numbers` | 3.00 |\r
| Send SMS | `POST /phone/numbers/:id/send` | 0.05 |\r
| Read messages | `GET /phone/numbers/:id/messages` | 0.02 |\r
| **Voice Calls** | | |\r
| Place call | `POST /phone/numbers/:id/call` | 0.10 |\r
| Speak (TTS) | `POST /phone/calls/:callControlId/speak` | 0.08 |\r
| Play audio | `POST /phone/calls/:callControlId/play` | 0.08 |\r
| Send DTMF | `POST /phone/calls/:callControlId/dtmf` | 0.02 |\r
| Gather input | `POST /phone/calls/:callControlId/gather` | 0.08 |\r
| Record call | `POST /phone/calls/:callControlId/record` | 0.10 |\r
| Hangup | `POST /phone/calls/:callControlId/hangup` | 0.02 |\r
| Answer inbound | `POST /phone/calls/:callControlId/answer` | 0.02 |\r
| Transfer call | `POST /phone/calls/:callControlId/transfer` | 0.10 |\r
| List calls | `GET /phone/numbers/:id/calls` | 0.02 |\r
| Call details | `GET /phone/calls/:id` | 0.02 |\r
| **Email** | | |\r
| Provision inbox | `POST /email/inboxes` | 2.00 |\r
| Read inbox | `GET /email/inboxes/:id/messages` | 0.02 |\r
| Send email | `POST /email/inboxes/:id/send` | 0.08 |\r
| List threads | `GET /email/inboxes/:id/threads` | 0.02 |\r
| Thread messages | `GET /email/threads/:threadId/messages` | 0.02 |\r
| Download attachment | `GET /email/attachments/:id` | 0.02 |\r
| Register webhook | `POST /email/webhooks` | 0.02 |\r
| **Compute** | | |\r
| List plans | `GET /compute/plans` | Free |\r
| Upload SSH key | `POST /compute/ssh-keys` | 0.10 |\r
| Create server | `POST /compute/servers` | 8.00-40.00 |\r
| List servers | `GET /compute/servers` | 0.02 |\r
| Server status | `GET /compute/servers/:id` | 0.02 |\r
| Server action | `POST /compute/servers/:id/actions` | 0.10 |\r
| Resize server | `POST /compute/servers/:id/resize` | 0.10 |\r
| Delete server | `DELETE /compute/servers/:id` | 0.10 |\r
| **Domains** | | |\r
| Check availability | `GET /domains/check?domain=example.com` | Free |\r
| TLD pricing | `GET /domains/pricing?domain=example` | Free |\r
| Register domain | `POST /domains/register` | dynamic (25% markup) |\r
| DNS records | `GET /domains/:domain/dns` | Free |\r
| Update DNS | `POST /domains/:domain/dns` | Free |\r
| Pricing | `GET /pricing` | Free |\r
| **Wallet** | | |\r
| Create wallet | `POST /wallet` | Free |\r
| Wallet status | `GET /wallet/:address` | Free |\r
| Generate keypair | `POST /wallet/keygen` | Free |\r
| Transfer (ERC20) | Via smart contract | Gas only |\r
| **Skills** | | |\r
| Browse catalog | `GET /compute/skills/catalog` | Free |\r
| Security scan | `GET /compute/skills/:slug/security` | Free |\r
\r
All paid endpoints use **x402** — make the request, get a 402, pay with USDC, done.\r
\r
## Authentication\r
\r
**Your wallet is your identity.** No API keys. No signup.\r
\r
Call any endpoint → pay with USDC via x402 → your wallet owns the resource.\r
\r
Same wallet to access it later. That's it.\r
\r
**Networks:** Solana mainnet + Base (EVM)\r
\r
---\r
\r
\r
## API Details\r
\r
The CLI wraps all API endpoints. If you prefer raw HTTP, use the quick reference table above. All endpoints accept JSON and return JSON.\r
\r
For voice calls, email threads, attachments, webhooks, and other advanced features — run `agentos --help` or see the full API docs at `agntos.dev/docs`.\r
\r
### Payment Flow\r
1. Call any paid endpoint → get `402 Payment Required`\r
2. Response includes USDC amount + treasury address (Solana + Base)\r
3. Pay via x402 protocol\r
4. Your wallet address becomes the resource owner\r
\r
### E2E Email Encryption\r
Emails are encrypted with your wallet's public key (NaCl box). We cannot read them.\r
\r
To decrypt, use the helper script in this skill folder:\r
```bash\r
node decrypt-email.mjs "w:..." ~/.config/solana/id.json\r
node decrypt-email.mjs --json '{"subject":"w:...","body":"w:..."}' ~/.config/solana/id.json\r
```\r
\r
## Webhooks\r
\r
Set up webhooks to receive events:\r
- **SMS inbound:** Messages to your number arrive via Telnyx webhook → stored, readable via API\r
- **Voice events:** `call.initiated`, `call.answered`, `call.hangup`, `call.recording.saved`, `call.gather.ended`\r
- **Email inbound:** Emails to `*@agntos.dev` processed via Cloudflare worker → stored encrypted\r
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install agents-infra - After installation, invoke the skill by name or use
/agents-infra - Provide required inputs per the skill's parameter spec and get structured output
What is Infrastructure for agents?
Infrastructure for AI Agents. Phone, email, Social accounts, compute, domains, and voice calling for AI agents. Pay with USDC on Solana or Base via x402. It is an AI Agent Skill for Claude Code / OpenClaw, with 348 downloads so far.
How do I install Infrastructure for agents?
Run "/install agents-infra" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Infrastructure for agents free?
Yes, Infrastructure for agents is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Infrastructure for agents support?
Infrastructure for agents is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Infrastructure for agents?
It is built and maintained by 0xArtex (@0xartex); the current version is v1.0.1.