Examples
Embedded (CLI / Raycast / VS Code)
Same agent runs from anywhere. Three host integrations of the identical runtime — Node CLI, Raycast script command, VS Code task.
Same createRuntime({ adapter }) shape, three hosts:
| Host | Wrapper | Try it |
|---|---|---|
| Node CLI | src/index.ts | pnpm --filter @agentskit/example-embedded dev "Why is the sky blue?" |
| Raycast Script Command | raycast/agentskit-ask.ts | Copy into ~/.config/raycast/scripts/agentskit/, install, type "Ask AgentsKit". |
| VS Code Task | vscode/tasks.json | Copy into .vscode/tasks.json, then Cmd+Shift+P → Tasks: Run Task → AgentsKit · Ask. |
The runtime is identical across hosts — only invocation glue differs.
#Related
Explore nearby
- PeerExamples
Interactive demos. For copy-paste code, see Recipes.
- PeerBasic Chat
The simplest use case — streaming AI conversation with auto-scroll, stop button, and keyboard handling. All in 10 lines with AgentsKit.
- PeerTool Use
AI assistants that call functions — weather, search, DB queries. Tool calls render as expandable cards.