Skip to content
kenari.

For AI agents

This page explains how AI agents, and the people who connect them, can use kenari with lower overhead. All endpoints are compatible with OpenAI or Anthropic, and the documentation is available in a machine-readable form.

Two plain text files help models load the documentation without a key:

  • /llms.txt: a short index, with one link and one line per section. Load it into any context window.
  • /llms-full.txt: all documentation combined into one file, for a single read.
Terminal window
curl https://kenari.id/llms.txt
curl https://kenari.id/llms-full.txt

Each docs page is available as clean Markdown. Add .md to the page URL, for example https://kenari.id/docs/chat.md.

/docs.md contains all documentation in one Markdown file.

Terminal window
curl https://kenari.id/docs/chat.md
curl https://kenari.id/docs.md

For models, Markdown uses about 30x fewer tokens than HTML, so choose this format when you provide context to agents.

The OpenAPI 3.1 spec is at https://kenari.id/openapi.json. This file describes the four /v1 endpoints, the kn-... bearer scheme, request and response shapes, and the error format. Use it with code generators, Postman, and API explorers.

Terminal window
curl https://kenari.id/openapi.json

kenari fully supports the Anthropic protocol at /v1/messages: every model id in the catalog can be used, including tool calling and streaming. ANTHROPIC_API_KEY (sent through the x-api-key header) is also accepted, and POST /v1/messages/count_tokens is available so Claude Code context tracking works as usual. Full setup steps are in AI editors and agents.

The Model Context Protocol server at https://kenari.id/mcp exposes the following tools:

ToolFunctionNeeds key
kenari_search_docsSearch the documentation.no
kenari_list_modelsList models with live IDR prices.no
kenari_balanceYour balance (Rupiah).yes
kenari_usageUsage for the last 30 days by model.yes
kenari_quotaYour plan and coupon quota in Rupiah.yes
kenari_web_searchLive web search, returns a ranked list of links.yes
kenari_web_fetchFetch clean content from one URL.yes
kenari_x_searchLive X (formerly Twitter) search, returns an answer with source links.yes

Add this endpoint to Claude Code, Cursor, or another MCP client. Tools without a key are public. For kenari_balance, kenari_usage, kenari_quota, kenari_web_search, kenari_web_fetch, and kenari_x_search, set the Authorization: Bearer kn-... header (your API key) in the MCP server configuration. The last three are also billed to your balance per call.

The header also accepts x-api-key if your MCP client uses that style. Authorization wins when both are present.

GET /v1/models (public) and GET /api/public/pricing return the current model list and token prices. Always call one of these endpoints instead of copying static numbers, because prices and the model catalog can change.

Terminal window
curl https://kenari.id/v1/models
curl https://kenari.id/api/public/pricing

See also Models and prices for the model list structure and Billing for how tokens are converted to Rupiah.