karta open opens the hosted chat page for a live release of
your agent.
This page is the shortest route to a deployed agent project. If you are choosing
between widget, API, existing harness project, operations, or architecture
review paths, start with Choose your path.
Deploy to Karta
1
Install the CLI
The Karta CLI ships on npm.
2
Log in
karta login prints a one-time code and opens your browser; approve it
while signed in to the dashboard. The CLI receives a
named, revocable credential - it shows up on your
API keys page like any other key - and installs the
git credential helper, so git push karta never prompts.In CI, or anywhere a browser cannot open, set the
KARTA_API_KEY
environment variable - it overrides the stored config everywhere - or
pipe a key: echo $KARTA_API_KEY | karta login --with-token.3
Scaffold an agent
karta create lays down a starter agent in the selected harness format:
CLAUDE.md for Claude Code, or AGENTS.md plus the native marker folder
for OpenCode, DeepAgents, Goose, or Codex CLI. It also writes
karta.toml (the deploy manifest - your agent’s name
and deploy gate, plus an [env] table for config it needs) and a
.gitignore. It scaffolds with the deploy gate off.
--template faq-agent starts from a worked support-agent example instead of
the blank skeleton.Other harnesses use the same flow:karta setup --enable there.Then configure delivery and turn on the deploy gate:karta setup configures the folder, initializes git when needed, and
writes or updates karta.toml. --enable flips on the deploy gate
(deploy = true) so the later karta deploy ships it. Without the gate,
the agent remains local until you enable deploy.Make the agent yours: replace the contents of the instruction file with
your own instructions. For this Claude Code walkthrough that file is
CLAUDE.md; for OpenCode, DeepAgents, Goose, and Codex CLI it is AGENTS.md.
Paste in a small support agent:CLAUDE.md
.claude/, .opencode/,
.deepagents/, .goose/, or .codex/) is additive. See
Agent structure.4
Deploy
karta deploy ships your agent. In a git repo, it creates or finds the
hosted source repo, wires a karta git remote, pushes your committed HEAD,
builds an immutable release, activates it, and streams
build progress back, including the live URL when the deploy finishes.
Once the remote is wired, git push karta main is the exact equivalent.If you deploy an existing git repo with uncommitted changes, commit or stash
them first. Karta deploys the committed HEAD for git-mode deploys.5
See it live
karta open console opens the agent in the dashboard.Verify the deploy
Exercise the Karta surface locally (optional)
You do not need this to ship, and it does not replace your harness’s own local workflow. Usekarta dev when you want to exercise the same session API
production serves, on your machine, with hot reload.
Local dev runs the model on your machine, so it needs a model credential
in your environment - either set
ANTHROPIC_API_KEY, or run
claude setup-token and export the resulting CLAUDE_CODE_OAUTH_TOKEN.
Deployed agents use the model access configured for production.
It also needs uv installed; the pinned agent
runtime bootstraps automatically on first run. karta doctor diagnoses the
setup if anything is off.Iterate
Deploying again is the same command. EditCLAUDE.md or AGENTS.md (or add a
sub-agent or skill), commit, deploy. Karta builds a new release and flips the
agent to it.
The API path never changes (the slug is stable), and in-flight
conversations finish on the release they started on.
Embed it in your site
Your deployed agent now has one stable consumer surface. Choose the integration path by who the user is, which credential can be exposed, and who owns the UI:
For the backend-minted token path, your server calls the management endpoint
with its
kt_live_... key:
karta dev
serves the same session API locally, a custom frontend can point at your local
Karta surface while you test integration.
Next steps
Choose your path
Pick the right next doc for widgets, API integrations, operations, or
architecture review.
Embed the widget
Add your deployed agent to a site with one async script tag.
Run a support bot locally
The full walkthrough: a local agent, a streaming chat widget, an end user.
Use the API
Create sessions, send messages, stream events, or use a consumer adapter.
Define sub-agents
Route between harness roles and hand off mid-conversation.
Production architecture review
Security, tenancy, credentials, spend gates, audit, and operations checklist.
Every CLI command
The full
karta reference - auth, local parity, deploy, observe.
