Getting started
Quickstart
Sign in, create a key, connect your agent over MCP or call REST, and see the call and its cost in the console.
For agents: this page as Markdown at /docs/quickstart.md
Get a free API key1. Sign in
Open the console and continue with GitHub or Google. Signing up is free and needs no card. You get a personal organization and $1 of free credit every UTC month, spent by calls from your keys and the live console.
2. Create an API key
The console's Overview opens on a Get started checklist. Create a key there, or under API keys. Keys start with kng_ and belong to the organization, so they keep working when a member leaves.
The key is shown once. Store it as a secret, for example in KANAGU_KEY:
export KANAGU_KEY="kng_..."3. Connect your agent over MCP
Add the MCP server at https://api.kanagu.dev/mcp (Streamable HTTP) with your key as a Bearer header. Its three tools, list_operations, describe_operation and call_operation, cover every operation.
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
--header "Authorization: Bearer $KANAGU_KEY"{
"mcpServers": {
"kanagu": {
"url": "https://api.kanagu.dev/mcp",
"headers": {
"Authorization": "Bearer ${env:KANAGU_KEY}"
}
}
}
}# ~/.codex/config.toml
[mcp_servers.kanagu]
url = "https://api.kanagu.dev/mcp"
bearer_token_env_var = "KANAGU_KEY"4. Make the first call
Ask your agent to run an operation. calendar.business-days needs no outside service and costs $0.001/call:
Use the kanagu MCP server's call_operation tool to run calendar.business-days with this input, then show me the result:
{"country":"US","startDate":"2026-11-25","days":2}Or call REST
Every operation is also one POST endpoint with a JSON body. See its schema, price and errors in the API reference.
curl https://api.kanagu.dev/v1/calendar/business-days \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"country":"US","startDate":"2026-11-25","days":2}'const res = await fetch("https://api.kanagu.dev/v1/calendar/business-days", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"country": "US",
"startDate": "2026-11-25",
"days": 2
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();5. Check usage
The Get started checklist checks itself off when the first call with your key arrives and shows what it cost. Usage lists every successful call with its units, cost, and whether free credit or your subscription paid for it. Calls that return an error are free.
When the month's free credit is used up, calls return 402 free_allowance_exhausted until the 1st, 00:00 UTC. The organization owner can subscribe at Billing to pay as you go at each operation's listed price.