Autarcho
v0.1.1Open-model inference billed per generated token in USDC on Solana.
An MCP server for the Autarcho network. It lets an agent list the open models, read what one costs, and run a completion, billed per generated token in USDC on Solana. Four tools, no configuration beyond a key: You need a key with credit on it. There is no sign-up:
Summary extracted from the README.
autarcho-mcp
An MCP server for the Autarcho network. It lets an agent list the open models, read what one costs, and run a completion, billed per generated token in USDC on Solana.
Four tools, no configuration beyond a key:
| Tool | What it does |
|---|---|
list_models |
The model ids this key can call. Start here. |
get_price |
Micro-USDC per generated token for one model. Input tokens are free. |
chat_completion |
One completion. max_tokens defaults to 256 and is capped at 2048. |
get_balance |
Credit left on the key, in USDC. |
Before you start
You need a key with credit on it. There is no sign-up:
# make a key
ak_$(openssl rand -hex 32)
# add credit to that key (USDC on Solana)
curl -X POST "https://api.autarcho.com/deposits/intent?amount=10" \
-H "Authorization: Bearer ak_<64 hex>"
Pay the solana_pay_url from the response with any Solana wallet. The credit
appears under the key once the transfer confirms. A key with no credit answers
402 insufficient_quota, which is what get_balance will show you.
Install
npx autarcho-mcp
Configure a client
Claude Code / Claude Desktop
{
"mcpServers": {
"autarcho": {
"command": "npx",
"args": ["-y", "autarcho-mcp"],
"env": { "AUTARCHO_API_KEY": "ak_..." }
}
}
}
Codex (~/.codex/config.toml)
[mcp_servers.autarcho]
command = "npx"
args = ["-y", "autarcho-mcp"]
env = { AUTARCHO_API_KEY = "ak_..." }
OpenCode (opencode.json)
{
"mcp": {
"autarcho": {
"type": "local",
"command": ["npx", "-y", "autarcho-mcp"],
"environment": { "AUTARCHO_API_KEY": "ak_..." }
}
}
}
Environment
| Variable | Default | Meaning |
|---|---|---|
AUTARCHO_API_KEY |
required | ak_ + 64 lowercase hex. The server exits with a message if it is missing. |
AUTARCHO_BASE_URL |
https://api.autarcho.com |
Point it at a local gateway. |
What it does not do
- No streaming. An MCP tool call returns one result.
- No function calling or
response_format. Those are on the HTTP API; this server exposes the plain chat shape. - No images or audio. The network is text only.
- No account and no wallet. It spends the credit already on the key.
Cost
You pay for generated tokens, priced per model. A 256-token answer on a model at 1 micro-USDC per token costs 256 micro-USDC, which is 0.000256 USDC. Every answer this server returns names the tokens generated and what they cost.
The operator running the model can read your prompt. Do not send secrets.
Links
- API reference: https://autarcho.com/docs/api/
- OpenAPI 3.1: https://api.autarcho.com/openapi.yaml
- Getting started: https://autarcho.com/start/
MIT licensed. The service it calls is operated separately and is not part of this package.