CLI reference
konstera is the command-line tool for building agents on Konstera. It
scaffolds an agent, validates its manifest, builds its container image,
pairs your machine with a Konstera tenant, and installs the Konstera plugin
into your coding agent.
What the CLI is for#
- Author agents: create the handler,
manifest.jsonand Dockerfile for a new agent, check the manifest against the schema, and build the image with Docker. - Connect your machine: pair with a tenant so your coding agent can see your tenant's connectors, LLM engines and glossary through MCP.
- Manage coding-agent plugins: download, verify, activate and deactivate the Konstera plugin for Claude Code.
Install#
One command detects your OS and CPU, finds the latest CLI release, checks
the download's SHA-256 against the release's checksums.txt, and installs
the binary:
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | sh
# Windows (PowerShell)
irm https://konstera.ai/install/cli.ps1 | iex
The installer does not need sudo or an Administrator window. It adds the
install folder to your PATH for you (see below).
| macOS / Linux | Windows | |
|---|---|---|
| Installs to | ~/.konstera/bin/konstera | %USERPROFILE%\.konstera\bin\konstera.exe |
With KONSTERA_HOME set | $KONSTERA_HOME/bin/konstera | %KONSTERA_HOME%\bin\konstera.exe |
| Supported CPUs | x86_64, arm64 | x64, arm64 |
| Needs | curl, tar, sha256sum or shasum | PowerShell 5.1 or later |
To read a script before you run it, fetch it without the pipe:
curl https://konstera.ai/install/cli.sh or
irm https://konstera.ai/install/cli.ps1.
PATH#
If the install folder isn't on your PATH yet, the installer adds it, once:
- Windows: at the front of your user PATH (no admin needed).
konsteraworks in the same window straight away, and in every new one. If anotherkonstera.exeis on your PATH (an older copy, scoop,go\bin), the installer lists it: remove it, or check which one runs with(Get-Command konstera).Source. - macOS / Linux: one line in your login shell's init file:
~/.zshrc,~/.bashrc(~/.bash_profileon macOS), fish'sconfig.fish, or else~/.profile. Open a new terminal, or run theexportline it prints.
To keep your PATH untouched, set KONSTERA_NO_MODIFY_PATH=1 before running
the installer. It then prints the line to add yourself:
# macOS / Linux
export PATH="$HOME/.konstera/bin:$PATH"
# Windows: adds the folder to your user PATH; open a new PowerShell window afterwards
[Environment]::SetEnvironmentVariable('Path', "$env:USERPROFILE\.konstera\bin;" + [Environment]::GetEnvironmentVariable('Path','User'), 'User')
Then check it works:
konstera version
Direct downloads#
Every release is also published on
GitHub Releases, as
konstera_<version>_<OS>_<arch>.tar.gz (macOS, Linux) or
.zip (Windows), with a checksums.txt beside them. Use these if your
network blocks konstera.ai. The same repository also publishes SDK
releases (tagged sdk-...), so pick a release tagged v<version>.
If the install fails#
| Message | What to do |
|---|---|
GitHub refused the release lookup (HTTP 403) or 429 | GitHub allows 60 unauthenticated API calls an hour per IP address, which an office network can use up. Wait an hour, set GITHUB_TOKEN to a GitHub token, or pin a version with KONSTERA_VERSION (below). |
GitHub rejected GITHUB_TOKEN (HTTP 401) | The token is wrong or expired. Unset it or use a valid one. |
Could not reach the GitHub Releases API | Your network or proxy blocks api.github.com. Pin a version with KONSTERA_VERSION, or use a direct download. |
| HTTP 407 on Windows | Your proxy needs a login. The Windows installer sends your Windows credentials; if that still fails, use a direct download. |
konstera.exe is in use and an older copy … is still running too (Windows) | Two copies of the CLI are running, usually from Claude Desktop or Claude Code. Quit Claude Desktop (also from the system tray) and Claude Code, then run the installer again. |
To install a given version without asking GitHub which one is newest:
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | KONSTERA_VERSION=0.3.2 sh
# Windows
$env:KONSTERA_VERSION = "0.3.2"; irm https://konstera.ai/install/cli.ps1 | iex
Update#
Run the install command again. It always fetches the latest CLI release and
replaces the binary in place. Your credentials and installed plugins under
~/.konstera are not touched.
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | sh
# Windows (PowerShell)
irm https://konstera.ai/install/cli.ps1 | iex
The CLI has no self-update command. The Claude Code plugin installer also updates the CLI when the installed one is older than the version it needs.
On Windows you can update while Claude Desktop or Claude Code is using the
CLI. The installer moves the running copy aside to konstera.exe.old and
installs the new one; restart Claude Desktop or Claude Code to use it. The
next install deletes the old copy. The Konstera extension
for Claude Desktop carries its own copy and updates when you install a newer
.mcpb.
Add Konstera to Claude Desktop#
There are two ways. A custom connector needs no download: Claude connects to Konstera over the internet and you sign in with your Konstera account. The Konstera extension runs the CLI on your computer. Use one of them, not both, or Claude sees the Konstera tools twice.
Connect with a custom connector#
- Add the connectorIn Claude Desktop, open Customize › Connectors, click + Add, then Add custom connector. Name it
Konsteraand enter the URLhttps://api.konstera.ai/mcp/devx. Leave the advanced settings empty. - Sign inClick Connect. Your browser opens claude.ai, then the Konstera sign-in: choose your work account. Konstera shows which app wants to connect, the workspace and your role there; pick the workspace and click Connect.
- Use itBack in Claude Desktop, the Konstera tools are available in new chats. Ask Claude to list your agents or connectors to check.
Claude acts as you, with your role in the workspace you picked; there is no separate approval by an admin. To disconnect, remove the connection in the Konstera portal under Settings › Developer pairings, or remove the connector in Claude.
Custom connectors depend on your Claude plan: on Free you can add one; on Team and Enterprise an Owner adds connectors for the organization.
Or install the Konstera extension#
Install the Konstera extension. You don't need the CLI for this, and there is
nothing to configure: the extension contains the CLI and runs
konstera mcp for Claude Desktop.
| Your computer | Download |
|---|---|
| Windows (most PCs) | konstera-windows-x64.mcpb |
| Windows on Arm (for example Snapdragon laptops) | konstera-windows-arm64.mcpb |
| macOS (Apple silicon and Intel) | konstera-macos.mcpb |
- Install the extensionIn Claude Desktop, open Settings › Desktop app, then Manage next to Extensions. Drag the downloaded
.mcpbfile onto that page (or click Advanced settings › Install Extension… and choose it). Claude Desktop shows the Konstera extension; click Install. Double-clicking the file does nothing on Windows, because Claude Desktop doesn't register the.mcpbfile type there. - Sign in from the chatIn a new chat, ask Claude to sign in to Konstera. Claude calls the
konstera_sign_intool, your browser opens the Konstera portal, and a tenant admin approves the request. - Use itThe Konstera tools appear once the request is approved. If they don't, start a new chat. Ask Claude to sign out of Konstera to end the pairing.
To remove it, ask Claude to sign out of Konstera first, then uninstall
Konstera under Settings › Desktop app › Extensions › Manage (the ⋯ menu next to Konstera › Uninstall). Installing a newer .mcpb the same
way updates it. If your company runs its own Konstera, set Konstera API
URL in the extension's settings (Configure next to Konstera); everyone else leaves it as it is.
Without the extension: run
konstera plugin activate claude-desktop, which adds
the installed CLI to Claude Desktop's config file. Quit Claude Desktop first.
If the tools don't appear: this Claude Desktop version writes the
server's log to %LOCALAPPDATA%\Claude\logs\mcp-server-konstera.log on
Windows. Sign-in problems and connection errors show up there.
Add Konstera to Claude Code or Cursor without the plugin#
Any MCP client that signs in with OAuth can use the same address as the
Claude Desktop connector, https://api.konstera.ai/mcp/devx. You sign in
with your Konstera account in the browser and the client acts as you, with
your role in the workspace you pick. Nothing to install and nothing to copy.
The Konstera plugin for Claude Code is the
other way: it adds Konstera's skills and commands as well. Use one of them,
not both, or the client sees the Konstera tools twice.
Claude Code#
claude mcp add --transport http --scope user konstera https://api.konstera.ai/mcp/devx
- Sign inIn Claude Code, run
/mcp, choose konstera, then Authenticate. Your browser opens the Konstera sign-in; choose the workspace and click Connect. - Use itAsk Claude Code to list your Konstera agents or connectors to check. It stays signed in across restarts.
To remove it: claude mcp remove --scope user konstera.
Cursor#
- Add the serverOpen Cursor Settings › Tools & MCP › New MCP Server. Cursor opens
mcp.json; add thekonsteraentry below and save. - Sign inBack in Tools & MCP, click Connect (or Login) next to konstera. Your browser opens the Konstera sign-in; choose the workspace and click Connect. The browser then hands you back to Cursor.
- Use itThe Konstera tools show under konstera. Ask Cursor's agent to list your Konstera agents to check.
{
"mcpServers": {
"konstera": {
"url": "https://api.konstera.ai/mcp/devx"
}
}
}
To disconnect any of these clients, remove the connection in the Konstera portal under Settings › Developer pairings, or remove the server in the client.
Commands#
| Command | What it does |
|---|---|
konstera version | Print the CLI version, commit and build date |
konstera init | Scaffold a new agent |
konstera manifest validate | Validate a manifest against agent-manifest.v3.json |
konstera build | Build the agent container image with docker buildx |
konstera login | Pair this machine with a tenant and configure coding agents |
konstera plugin | Install, list, activate and deactivate coding-agent plugins, and add Konstera to Claude Desktop |
konstera mcp | The local MCP server Claude Desktop runs (you don't run it yourself) |
konstera connection secret | Upload a connection's secrets from a local file, then test the connection |
konstera deploy | Build, push and publish the agent to your workspace |
konstera dev | Not implemented yet: prints the manual path |
konstera completion | Generate a shell completion script |
konstera help | Help for any command (same as --help) |
Every command accepts -h / --help.
konstera version#
Print the CLI version, the git commit it was built from, and the build date. No flags.
konstera version
konstera init#
Scaffold a new agent folder with the handler (main.py, Program.cs or
src/index.ts), a manifest.json that conforms to agent-manifest.v3.json,
and a multi-stage Dockerfile.
konstera init <name> [flags]
| Flag | Default | Description |
|---|---|---|
-l, --language | python | Agent language: python, typescript or dotnet |
-t, --template | hello-world | Scaffold template. hello-world is the only template today |
--dir | <name> | Output directory |
--force | off | Allow writing into a directory that is not empty |
konstera init my-first-agent --language python
cd my-first-agent
konstera manifest validate manifest.json
konstera build
konstera manifest validate#
Validate an agent manifest against the agent-manifest.v3 JSON Schema.
Exits 0 when the manifest is valid and 1 when it is not, listing each
schema violation by its JSON pointer.
konstera manifest validate <path> [flags]
| Flag | Default | Description |
|---|---|---|
--schema | see below | Path to the agent-manifest.v3.json to validate against |
The CLI looks for the schema in this order:
--schema <path>$KONSTERA_SCHEMA_DIR/agent-manifest.v3.json- A
schemas/agent-manifest.v3.jsonin the current folder or up to ten parent folders (for example when you run it inside a clone of Konstera/sdk)
If none of these is found, the command fails and asks you to set --schema
or KONSTERA_SCHEMA_DIR. See the manifest schema.
The installed CLI doesn't ship the schema file, so outside a clone of Konstera/sdk download it once and point at it:
curl -fsSLO https://raw.githubusercontent.com/Konstera/sdk/main/schemas/agent-manifest.v3.json
konstera manifest validate manifest.json --schema agent-manifest.v3.json
konstera build#
Build the agent's container image. A thin wrapper around
docker buildx build: it reads id and version from manifest.json and
tags the image <id>:<version> unless you pass --tag. By default the image
is loaded into your local Docker; --push pushes it to the registry in the
tag instead.
konstera build [flags]
| Flag | Default | Description |
|---|---|---|
--manifest | ./manifest.json | Path to the manifest |
--context | the manifest's folder | Docker build context |
--dockerfile | <context>/Dockerfile | Path to the Dockerfile |
-t, --tag | <id>:<version> from the manifest | Image tag |
--push | off | Push to the registry after the build instead of loading into local Docker |
--platform | Docker's default | Target platforms, for example linux/amd64,linux/arm64 |
--allow-deprecated-connection-requirements | off | Let the build pass while the manifest still uses the deprecated connectionRequirements[]. Short-term escape hatch: migrate to capabilities.needs[] |
Multi-platform builds need a buildx builder that supports them (the
docker-container driver works).
konstera build
konstera build --tag ghcr.io/me/my-agent:0.1.0 --push
konstera build --platform linux/amd64,linux/arm64 --tag ghcr.io/me/x:0.1 --push
konstera login#
Pair this machine with a Konstera tenant using the device-code flow. The CLI
prints a short code and opens the Konstera portal in your browser; a tenant
admin reviews the request and approves it. The CLI then saves a scoped
access token to ~/.konstera/credentials.json and adds a konstera-devx MCP
server entry to every supported coding agent it finds on this machine
(Cursor, Claude Code, OpenAI Codex, Windsurf, Cline, Continue). Restart your
editor to pick it up. For Claude Desktop, install the
Konstera extension instead.
The default scope, devx.metadata.read, lets your coding agent see the
tenant's shape (connectors and capability tags, LLM engines, glossary). It
cannot deploy or run anything.
konstera login [flags]
| Flag | Default | Description |
|---|---|---|
--api-url | $KONSTERA_API_URL, else https://api.konstera.ai | Konstera Platform API URL |
--scopes | devx.metadata.read | Comma-separated scopes to request. The admin can trim them before approving |
--tenant | none | Suggested tenant slug. The approval page pre-selects it; the admin decides |
--client | konstera-cli-<os> | Client name recorded on the pairing and shown to the admin |
--no-fanout | off | Save credentials only; do not write MCP entries into coding-agent configs |
--force | off | Overwrite existing konstera-devx MCP entries. The CLI already replaces its own entry on every login, so this rarely changes anything |
konstera login
konstera login --tenant acme-dev
konstera login --scopes devx.metadata.read,devx.manifest.validate
If the code expires or is already used, run konstera login again.
konstera plugin#
Install and manage Konstera plugins for coding agents. A plugin wraps the Konstera MCP server for one editor, so the editor can see your tenant without hand-edited MCP config.
| Subcommand | What it does |
|---|---|
konstera plugin install <slug> | Download, verify and extract a plugin |
konstera plugin activate <slug> | Add an installed plugin to its editor |
konstera plugin deactivate <slug> | Remove a plugin from its editor, keeping the files |
konstera plugin list | List installed plugins with version and activation state |
konstera plugin install
Download the latest release of a plugin, verify its SHA-256 and extract it
to ~/.konstera/plugins/<slug>/. If the same version is already installed,
it exits without downloading again.
konstera plugin install <slug> [flags]
| Flag | Default | Description |
|---|---|---|
--api-url | see below | Konstera Platform API URL to download from |
--force | off | Replace an existing install even if it is the same version |
The API URL is taken from, in order: --api-url, KONSTERA_API_URL, the
API URL saved in ~/.konstera/credentials.json by konstera login, then
https://api.konstera.ai.
konstera plugin install claude-code
konstera plugin install claude-code --force
konstera plugin activate
Make the editor load an installed plugin. Supported slugs: claude-code,
claude-desktop.
For claude-code it registers ~/.konstera/plugins as a local Claude Code
marketplace and installs the plugin from it with the claude command, so
Claude Code must be installed first. The plugin then loads in every new
Claude Code session, and later konstera plugin install --force upgrades
reach the next session without activating again. Safe to run more than once.
No flags.
konstera plugin activate claude-code
Then open a new Claude Code session and run /konstera-signin.
For claude-desktop there is nothing to install first: it adds the CLI itself
to Claude Desktop as a local MCP server named konstera (it runs
konstera mcp). Your other Claude Desktop settings and MCP
servers are left as they are, and an old konstera-devx entry from
konstera login is removed (Claude Desktop could not use it). Most people
should install the extension instead; this is the
alternative for those who already use the CLI.
Quit Claude Desktop completely first (on Windows also from the system tray). It rewrites its config file when it quits, which would undo the change, so the command refuses while Claude Desktop is running and tells you how to quit it.
konstera plugin activate claude-desktop
If the Konstera extension is already installed, the command (CLI 0.5.1 and later) adds nothing and removes any older Konstera entry from the config file, so Claude Desktop doesn't start Konstera twice.
Then open Claude Desktop and ask Claude to sign in to Konstera. Claude calls the
konstera_sign_in tool, your browser opens the Konstera portal, and a tenant
admin approves the request. The Konstera tools appear once it is approved; if
they don't, start a new chat. Ask Claude to sign out of Konstera to end the
pairing.
konstera plugin deactivate
Remove a plugin from its editor. The files stay in
~/.konstera/plugins/<slug>/, so you can activate it again later. Safe to
run when there is nothing to remove. No flags. For claude-desktop, quit Claude
Desktop first, as for activate.
konstera plugin deactivate claude-code
konstera plugin deactivate claude-desktop
konstera plugin list
List the plugins under ~/.konstera/plugins/. VERSION is unknown when a
plugin does not record one; ACTIVATED is yes, no, or n/a for a slug
with no activation support. No flags.
konstera plugin list
konstera mcp#
A local MCP server over stdio for MCP clients without a Konstera plugin.
Claude Desktop starts it, from the Konstera extension or
after konstera plugin activate claude-desktop; you don't run it by hand. It serves the Konstera tools your pairing allows, plus
three of its own:
| Tool | What it does |
|---|---|
konstera_sign_in | Opens the Konstera portal for a tenant admin to approve; finishes by itself |
konstera_status | Which tenant you're signed in to, the granted scopes, when the token renews |
konstera_sign_out | Ends the pairing on Konstera and removes the tokens from this machine |
Each client gets its own pairing, listed separately under Settings › Developer pairings in the portal, and its tokens renew automatically.
| Flag | Default | Description |
|---|---|---|
--client | claude-desktop | Client name: shown on the pairing, and names its file ~/.konstera/mcp-<client>.json |
--api-url | as for konstera plugin install | Konstera Platform API URL |
Set KONSTERA_NO_BROWSER=1 to stop it opening the browser; the sign-in tool's
reply still carries the link and code.
konstera connection secret#
Upload a connection's secrets (API tokens, passwords) from a file on your
machine, then test the connection. This keeps secrets out of your coding
agent's chat: the agent creates the connection over MCP with its
non-secret settings (connection_create), tells you which fields to put in
the file, and you run this command.
konstera connection secret <alias> [flags]
The file is a JSON object with one string per credential field. The
default path is ~/.konstera/secrets/<alias>.json:
{
"api_token": "…",
"email": "support@acme.example"
}
| Flag | Default | Description |
|---|---|---|
--file | ~/.konstera/secrets/<alias>.json | Secrets file to upload |
--keep | off | Keep the file after a successful upload |
The file is sent over HTTPS and deleted once the connection test passes.
If the test fails, the file stays so you can fix it and run the command
again. Values are never printed. Needs a pairing with the
devx.connections.secrets scope:
konstera login --scopes devx.metadata.read,devx.connections.secrets
konstera deploy#
Build, push and publish the agent to the workspace you paired with
konstera login, in one step:
- Builds the image and pushes it to
--image(orruntime.imagein the manifest). For a hosted workspace it buildslinux/amd64by default. - Validates the manifest against the workspace and publishes it with
runtime.imageset to that image. Publishing the same version again changes nothing. - The agent then shows in the portal under Agents › Catalog, ready to install.
konstera deploy [flags]
| Flag | Default | Description |
|---|---|---|
--manifest | ./manifest.json | Path to the manifest |
--image | runtime.image from the manifest | Image to push and publish, <registry>/<repo>:<tag> |
--context | the manifest's folder | Docker build context |
--dockerfile | <context>/Dockerfile | Path to the Dockerfile |
--platform | linux/amd64 for a hosted workspace | Target platform |
--no-build | off | Skip build and push; publish an image that is already pushed |
--allow-deprecated-connection-requirements | off | Same escape hatch as konstera build |
The image must be one the workspace can pull: on Konstera Cloud, a public
image such as ghcr.io/you/agent:0.1.0. konstera deploy refuses a
localhost image for a hosted workspace. See
Where your agent's image lives.
Needs a pairing with the devx.agent.deploy_dev scope:
konstera login --scopes devx.metadata.read,devx.manifest.validate,devx.agent.deploy_dev
konstera deploy --image ghcr.io/acme/order-helper:0.1.0
konstera deploy --no-build # image already pushed; publish only
konstera dev#
Not implemented yet Will run a local Konstera stack (kernel, PostgreSQL and your agent) with Docker Compose. Both subcommands print a message and exit. No flags.
| Subcommand | Planned behaviour |
|---|---|
konstera dev up | Start the local dev stack |
konstera dev down | Stop the local dev stack |
konstera completion#
Generate a shell completion script. Subcommands: bash, zsh, fish,
powershell. Run konstera completion <shell> --help for how to load it in
your shell.
konstera completion zsh > "${fpath[1]}/_konstera"
konstera completion powershell | Out-String | Invoke-Expression
Environment variables#
| Variable | Read by | Effect |
|---|---|---|
KONSTERA_HOME | installers, CLI | Replaces ~/.konstera as the Konstera folder: the binary goes in $KONSTERA_HOME/bin, credentials and plugins live under it too |
KONSTERA_NO_MODIFY_PATH | installers | Set to 1 to keep the installer from adding the install folder to your PATH |
KONSTERA_VERSION | installers | Install this CLI version (for example 0.3.2) without asking the GitHub API which release is newest |
GITHUB_TOKEN | installers | Sent with the GitHub API call that finds the newest release, so it isn't subject to the anonymous rate limit |
KONSTERA_API_URL | login, plugin install, plugin activate | Konstera Platform API URL, used when no --api-url is given. Default https://api.konstera.ai |
KONSTERA_SCHEMA_DIR | manifest validate | Folder that holds agent-manifest.v3.json, used when no --schema is given |
The variables your agent sees at runtime are a different set; see Environment variables.
Files the CLI uses#
Everything lives under ~/.konstera (%USERPROFILE%\.konstera on Windows),
or under KONSTERA_HOME when it is set.
| Path | Written by | Contents |
|---|---|---|
bin/konstera (bin\konstera.exe) | installers | The CLI binary |
credentials.json | konstera login | Tenant, granted scopes, API URL and the access token for this machine. Private to your user (mode 0600 on macOS and Linux). Do not share or commit it |
install.uuid | konstera login | Random per-install ID used to tell your machines apart in the pairing list |
mcp-<client>.json | konstera mcp | That client's pairing and tokens, e.g. mcp-claude-desktop.json. Private to your user. Emptied on sign-out |
plugins/<slug>/ | konstera plugin install | An extracted plugin, for example plugins/claude-code/ |
konstera login also writes a konstera-devx entry, which includes the
access token, into the MCP config of each coding agent it finds. Other
entries in those files are left alone. Use --no-fanout to skip this.
Claude Desktop uses the Konstera extension, or
konstera plugin activate claude-desktop, which writes
claude_desktop_config.json (macOS
~/Library/Application Support/Claude/, Windows %APPDATA%\Claude\, Linux
~/.config/Claude/) with no token in it.
| Coding agent | Config file |
|---|---|
| Claude Code | ~/.config/claude-code/mcp.json |
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp.json |
| OpenAI Codex | ~/.codex/mcp.json |
| Cline | ~/.cline/mcp.json |
| Continue | ~/.continue/config.json |