karta CLI is the handoff and operations tool around your agent project:
sign in, scaffold a starter if needed, exercise the Karta session surface
locally, deploy with git or folder upload, and observe what’s running.
Auth
Credentials live under named profiles in
~/.karta/config.toml; select one
with --profile <name>. In CI, set the KARTA_API_KEY environment variable -
it overrides the stored config everywhere, no browser needed.
Build & run locally
karta dev needs uv installed; it bootstraps
the pinned agent runtime automatically on first run. Set KARTA_RUNTIME to
point at a local runtime checkout instead.Deploy
Deploy iskarta deploy: it ships the current agent project, inferring the
transport - a git repo pushes to its hosted source repo, a plain folder uploads
as a tarball. On first run it provisions the hosted agent and wires the karta
git remote; git push karta main is the transparent equivalent for a git
repo. A push builds every enabled agent in the repo.
Environment
Declare what config exists inkarta.toml [env], bind it locally with
.env, and bind it in production with these verbs - the same files run in
both environments.
Observe
Admin and automation
These commands are for operators, platform teams, and scripts that manage a Karta organization beyond a single local deploy.Scripting
Every command that prints a result also takes--json for machine-readable
output - karta agent list --json, karta env diff --json, and so on.
karta open --json prints the URL instead of opening a browser. karta send --json buffers the reply and returns one {agent, session_id, reply} payload.
karta deploy --mode folder --json returns a structured upload result. The
remaining stream-shaped commands (dev, logs, completion, and git-mode
deploy) do not support the flag and say so.
Staying current
Earlier versions shipped a separate Python
karta (pip) with serve,
agent, and session verbs. Those are retired - the runtime package
installs no karta script at all, and karta doctor flags PATH shadowing
from any stale dev install. Local Karta session parity is
karta dev; agent management is the commands above.
