# Khwan — Documentation > A memory layer for AI agents. Khwan never runs a model: the loop is > POST /prepare to build the context, your own model to answer, POST /record > to hand the answer back so the brain persists and learns from the turn. Generated from the page map at build time, so it lists what exists rather than what someone remembered to add. Every page below is also served as Markdown at the same path with `.md` appended — /quickstart.md is the source of /quickstart, about a thirtieth of the HTML. Fetch those rather than parsing the rendered pages. ## Docs - [Khwan](https://docs.khwan.ai/): Khwan is a hosted cognition layer for AI agents. It gives any model long-term memory, a constitutional identity, coherence checks, and continuous learning — without you running that infrastructure yourself. Markdown: https://docs.khwan.ai/index.md - [Quickstart](https://docs.khwan.ai/quickstart): Get a Khwan brain running around your own model in a few minutes. Markdown: https://docs.khwan.ai/quickstart.md - [Claude Code (MCP)](https://docs.khwan.ai/claude-code): Give Claude Code durable memory that survives the session — over MCP. Khwan never runs a model; in a Claude Code session, Claude itself is the model. Khwan is the memory it's missing. Markdown: https://docs.khwan.ai/claude-code.md - [ChatGPT (Custom GPT)](https://docs.khwan.ai/chatgpt): Use Khwan as durable memory inside ChatGPT — on the web, free tier included. Khwan never runs a model; in ChatGPT, ChatGPT is the model. Khwan is the memory it forgets between chats. Each person signs in with their own account, so memories are isolated per user. Markdown: https://docs.khwan.ai/chatgpt.md - [CrewAI](https://docs.khwan.ai/crewai): CrewAI gives agents a plan and the tools to execute it. It does not give them a memory that survives the process. Khwan is that memory — and because Khwan never runs a model, your Agent's LLM stays exactly as you configured it. Markdown: https://docs.khwan.ai/crewai.md - [Connect your agent](https://docs.khwan.ai/connect-your-agent): Khwan is a memory layer, not an agent framework — it plugs into whichever one you already run. Every integration is the same three calls in the same two places, no matter what the host is called. This page is the pattern; build your own from it. Markdown: https://docs.khwan.ai/connect-your-agent.md - [Bring Your Own Model](https://docs.khwan.ai/byom): Khwan is a cognition layer, not a model. In the BYOM flow you call the LLM; Khwan only prepares context and records the result. This page is the deep dive on that loop. Markdown: https://docs.khwan.ai/byom.md - [Architecture](https://docs.khwan.ai/architecture): What is actually behind the API, in enough detail to judge whether it fits your problem — including the parts it does badly. Markdown: https://docs.khwan.ai/architecture.md - [API Reference](https://docs.khwan.ai/api-reference): The Khwan REST API. The Python and TypeScript clients are thin wrappers over these endpoints — you can call them directly from any language. Markdown: https://docs.khwan.ai/api-reference.md - [Python SDK](https://docs.khwan.ai/sdk-python): The khwan Python package is a thin HTTP wrapper over the REST API — no engine code, just requests. It is open source: read it at github.com/khwanlabs/khwan-client-python. "Thin" is a claim about code that handles your prompts, so it is one worth checking rather than taking. Markdown: https://docs.khwan.ai/sdk-python.md - [TypeScript SDK](https://docs.khwan.ai/sdk-ts): The @khwan/client package is a thin wrapper over the REST API for Node and the browser. It mirrors the Python client one-to-one, with async methods. Open source: github.com/khwanlabs/khwan-client-ts. Markdown: https://docs.khwan.ai/sdk-ts.md ## Everything at once - [Full text](https://docs.khwan.ai/llms-full.txt): every page above, concatenated, so one fetch is enough. ## Source - [khwan-client-python](https://github.com/khwanlabs/khwan-client-python) - [khwan-client-ts](https://github.com/khwanlabs/khwan-client-ts)