Dagon Inference
v0.1.0Uncensored LLM inference: list models, chat, create keys, buy credits with Solana USDC.
Values you need
| Variable | What it is | |
|---|---|---|
DAGON_API_KEY | optional secret | Dagon account key (gk_...) for balance, purchases and chat |
DAGON_BASE_URL | optional | Gateway URL (default https://inference.dagon.so) |
DAGON_WALLET_SECRET_KEY | optional secret | Optional Solana secret key for self-signed USDC purchases; use a dedicated hot wallet |
DAGON_TREASURY_WALLET | optional | Trusted Dagon treasury address, required for purchases (9rMdbu4KdLWH2nPXbzhm9HTKaibGZ2ckakQbW1wPh6KK) |
DAGON_SOLANA_RPC_URL | optional | Solana RPC for submitting unsponsored purchases |
DAGON_MIN_PURCHASE_USD | optional | Smallest purchase in USD (default 1) |
DAGON_MAX_PURCHASE_USD | optional | Largest purchase per call in USD (default 50; 0 disables purchases) |
DAGON_MAX_PURCHASE_USD_PER_SESSION | optional | Purchase cap per server process in USD (default 200) |
DAGON_MAX_PURCHASE_USD_PER_DAY | optional | Purchase cap per UTC day in USD (default 200) |
DAGON_MAX_SOL_FEES | optional | Daily worst-case SOL fee cap (default 0.05) |
DAGON_SPEND_LEDGER | optional | Path of the daily spend ledger file |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add dagon-mcp -- npx -y dagon-mcp@0.1.0Add to
claude_desktop_config.json{
"mcpServers": {
"dagon-mcp": {
"args": [
"-y",
"dagon-mcp@0.1.0"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"dagon-mcp": {
"args": [
"-y",
"dagon-mcp@0.1.0"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"dagon-mcp": {
"args": [
"-y",
"dagon-mcp@0.1.0"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.dagon-mcp]
command = "npx"
args = ["-y", "dagon-mcp@0.1.0"]Remote (hosted)
Run in a terminal
claude mcp add --transport http dagon-mcp https://inference.dagon.so/mcp --header 'Authorization: <Authorization>'Add to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"dagon-mcp": {
"args": [
"-y",
"mcp-remote",
"https://inference.dagon.so/mcp",
"--header",
"Authorization: <Authorization>"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"dagon-mcp": {
"headers": {
"Authorization": "<Authorization>"
},
"url": "https://inference.dagon.so/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"dagon-mcp": {
"headers": {
"Authorization": "<Authorization>"
},
"type": "http",
"url": "https://inference.dagon.so/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.dagon-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://inference.dagon.so/mcp", "--header", "Authorization: <Authorization>"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: dagon_models, dagon_balance, dagon_create_key, dagon_buy_credits, dagon_confirm_purchase, dagon_chat.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json