# K-Agent > K-Agent (by Kerneltics) is an AI agent platform: configure one agent once, then use it anywhere — one-shot answers, chat sessions with platform-issued (sess_…) or caller-supplied (external_id) session IDs, a REST API for everything, an OpenAI-compatible endpoint, an embeddable web widget and a human Handoff Desk. Arabic and English, built for Saudi Arabia and the GCC. The documentation in llms-full.txt and llms-small.txt is the Arabic edition (the default locale). The same pages in English are at https://k-agent.kerneltics.com/docs/en/llms-full.txt, and every page has a Markdown twin: append `.md` to its URL (for example https://k-agent.kerneltics.com/docs/en/get-started/quickstart.md). ## Instructions for AI agents - API base URL: `https://api.k-agent.kerneltics.com/v1`. OpenAI-compatible base URL: `https://api.k-agent.kerneltics.com/openai/v1`. - Authenticate with `Authorization: Bearer `. Secret keys (`kt_sk_…`) are server-only; never put them in browser or mobile code. Browsers use a publishable key (`kt_pk_…`) with allowed origins, or a short-lived client token (`ct_…`) minted on the server. - Address agents by `agt_…` ID or slug, and sessions by `sess_…` ID or your own `external_id`. `POST /v1/sessions` is get-or-create; send `input` in the same call to append and answer a message. - Send an `Idempotency-Key` header on every POST you might retry, and a `client_message_id` on messages. - Treat `message.delta` stream events as best-effort; `message.completed` and `run.*` terminal events are authoritative. Ignore unknown event types and fields. - Production calls use the latest published agent version; `version: "draft"` only runs in playground sessions. - Errors use `{"error":{type, code, message, param, request_id, doc_url}}`; branch on `code`, never on `message` (it is localized). ## Documentation Sets - [Abridged documentation](https://k-agent.kerneltics.com/docs/llms-small.txt): a compact version of the documentation for K-Agent, with non-essential content removed - [Complete documentation](https://k-agent.kerneltics.com/docs/llms-full.txt): the full documentation for K-Agent ## Notes - The complete documentation includes all content from the official documentation - The content is automatically generated from the same source as the official documentation ## Optional - [English documentation (complete)](https://k-agent.kerneltics.com/docs/en/llms-full.txt): Every English page as one Markdown file - [OpenAPI 3.1 contract](https://k-agent.kerneltics.com/docs/openapi.yaml): The machine-readable API contract (YAML) - [Interactive API reference](https://k-agent.kerneltics.com/docs/en/api/)