Overview
AgentOS is a runtime, API, and SDK stack for building intelligent applications.
Many developers no longer read a full doc set and implement everything manually. Instead, they first clarify the scenario and constraints, then hand the task to an AI coding tool.
Because of that, these docs now provide two kinds of material:
- decision-making guidance for humans
- prompts, fact checklists, and minimal examples for AI coding tools
For most app developers, three questions matter first:
- How do I connect to AgentOS capabilities?
- How do I organize sessions, messages, tools, and state?
- Which SDK, UI layer, or API surface should I choose?
Who this is for
- Developers integrating chat or agent capabilities into Web, Node.js, Dart, or Flutter apps
- Client developers calling AgentOS through SDKs or HTTP APIs
- Advanced developers who need runtime and extension details
Recommended reading mode
Traditional mode
Read quickstarts, guides, and examples yourself, then implement the integration manually.
AI-assisted mode
- Decide whether your target is the model gateway, agent orchestration, or RAG services
- Copy the page's recommended prompt and minimal fact checklist into your AI coding tool
- Let the AI make the change inside your real codebase
- Use the manual verification checklist to confirm the critical AgentOS facts
If you already code with Claude, Codex, Cursor, or ChatGPT, the second mode is usually the better default.
Start from AI-Assisted Integration.
Common integration scenarios
1. Your app already has its own complex agent and only needs model access
Use modelkit first, not agentkit.
The AgentOS gateway exposes OpenAI-compatible interfaces, so you can often use the official OpenAI SDK directly:
baseURL: if using the official OpenAI SDK directly, chat uses${baseUrl}/modelkit/chat/v1, wherebaseUrlcomes from the AgentOS root endpointapiKey: the bearer token returned byregisterBundleorPOST /appkit/registermodel: amodel.idfromsdk.modelkit.listModelsByTask(ModelTask.chat)or atask=chatitem fromGET /modelkit/models
Best for:
- managing prompts, memory, state machines, and tool orchestration yourself
- keeping your own customized agent runtime
- reusing AgentOS only as the model gateway and unified auth layer
2. Your app provides tools but you do not want to assemble the agent yourself
Use agentkit.
AgentKit handles sessions, message flow, tool calls, and callback orchestration.
3. Your app needs TTS
Use the OpenAI SDK TTS interface against AgentOS /modelkit/tts/*.
apiKey still comes from the registration token, and the model should come from the ModelKit task=tts list. If you use the official OpenAI SDK directly, point baseURL to /modelkit/tts/v1.
4. Your app needs ASR
Use the OpenAI SDK ASR interface against AgentOS /modelkit/asr/*.
apiKey still comes from the registration token, and the model should come from the ModelKit task=asr list. If you use the official OpenAI SDK directly, point baseURL to /modelkit/asr/v1.
5. Your app needs embeddings
Use the OpenAI SDK embeddings interface against AgentOS /modelkit/embedding/*.
apiKey still comes from the registration token, and the model should come from the ModelKit task=embedding list. If you use the official OpenAI SDK directly, point baseURL to /modelkit/embedding/v1.
6. Your app needs ready-made RAG services rather than building on embeddings directly
Use ragkit.
It is better suited for apps that want query, document management, synchronization, and knowledge-base workflows directly instead of building embeddings, ChromaDB, or docs management logic from scratch.
Suggested reading order
- AI-Assisted Integration
- Choose Your Stack
- TypeScript Quickstart or Dart Quickstart
- Architecture
- The relevant
examples/section
