Skip to content
Konstera
Docs · Get started
Konstera documentation.

Getting started, SDK quickstart, manifest reference, kernel MCP services, deploy guide and FAQ — everything you need to build and run agents on Konstera.

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 you'll have at the end
The konstera CLI installed and on your PATH, and a reference for every command and flag it has.
Time
~2 min to install
Level
Beginner
You need
macOS, Linux or 64-bit WindowsDocker with buildx (for konstera build)

What the CLI is for#

FlowWhere the CLI fits Interactive — click a block
  • Author agents: create the handler, manifest.json and 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:

Terminal
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | sh
PowerShell
# 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 / LinuxWindows
Installs to~/.konstera/bin/konstera%USERPROFILE%\.konstera\bin\konstera.exe
With KONSTERA_HOME set$KONSTERA_HOME/bin/konstera%KONSTERA_HOME%\bin\konstera.exe
Supported CPUsx86_64, arm64x64, arm64
Needscurl, tar, sha256sum or shasumPowerShell 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). konstera works in the same window straight away, and in every new one. If another konstera.exe is 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_profile on macOS), fish's config.fish, or else ~/.profile. Open a new terminal, or run the export line 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:

Terminal
# macOS / Linux
export PATH="$HOME/.konstera/bin:$PATH"
PowerShell
# 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:

Terminal
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#

MessageWhat to do
GitHub refused the release lookup (HTTP 403) or 429GitHub 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 APIYour network or proxy blocks api.github.com. Pin a version with KONSTERA_VERSION, or use a direct download.
HTTP 407 on WindowsYour 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:

Terminal
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | KONSTERA_VERSION=0.3.2 sh
PowerShell
# 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.

Terminal
# macOS / Linux
curl -fsSL https://konstera.ai/install/cli.sh | sh
PowerShell
# 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#

  1. Add the connector
    In Claude Desktop, open Customize › Connectors, click + Add, then Add custom connector. Name it Konstera and enter the URL https://api.konstera.ai/mcp/devx. Leave the advanced settings empty.
  2. Sign in
    Click 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.
  3. Use it
    Back 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 computerDownload
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
  1. Install the extension
    In Claude Desktop, open Settings › Desktop app, then Manage next to Extensions. Drag the downloaded .mcpb file 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 .mcpb file type there.
  2. Sign in from the chat
    In a new chat, 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.
  3. Use it
    The 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#

Terminal
claude mcp add --transport http --scope user konstera https://api.konstera.ai/mcp/devx
  1. Sign in
    In Claude Code, run /mcp, choose konstera, then Authenticate. Your browser opens the Konstera sign-in; choose the workspace and click Connect.
  2. Use it
    Ask 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#

  1. Add the server
    Open Cursor Settings › Tools & MCP › New MCP Server. Cursor opens mcp.json; add the konstera entry below and save.
  2. Sign in
    Back 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.
  3. Use it
    The Konstera tools show under konstera. Ask Cursor's agent to list your Konstera agents to check.
JSON
{
  "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#

CommandWhat it does
konstera versionPrint the CLI version, commit and build date
konstera initScaffold a new agent
konstera manifest validateValidate a manifest against agent-manifest.v3.json
konstera buildBuild the agent container image with docker buildx
konstera loginPair this machine with a tenant and configure coding agents
konstera pluginInstall, list, activate and deactivate coding-agent plugins, and add Konstera to Claude Desktop
konstera mcpThe local MCP server Claude Desktop runs (you don't run it yourself)
konstera connection secretUpload a connection's secrets from a local file, then test the connection
konstera deployBuild, push and publish the agent to your workspace
konstera devNot implemented yet: prints the manual path
konstera completionGenerate a shell completion script
konstera helpHelp 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.

Terminal
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.

Terminal
konstera init <name> [flags]
FlagDefaultDescription
-l, --languagepythonAgent language: python, typescript or dotnet
-t, --templatehello-worldScaffold template. hello-world is the only template today
--dir<name>Output directory
--forceoffAllow writing into a directory that is not empty
Terminal
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.

Terminal
konstera manifest validate <path> [flags]
FlagDefaultDescription
--schemasee belowPath to the agent-manifest.v3.json to validate against

The CLI looks for the schema in this order:

  1. --schema <path>
  2. $KONSTERA_SCHEMA_DIR/agent-manifest.v3.json
  3. A schemas/agent-manifest.v3.json in 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:

Terminal
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.

Terminal
konstera build [flags]
FlagDefaultDescription
--manifest./manifest.jsonPath to the manifest
--contextthe manifest's folderDocker build context
--dockerfile<context>/DockerfilePath to the Dockerfile
-t, --tag<id>:<version> from the manifestImage tag
--pushoffPush to the registry after the build instead of loading into local Docker
--platformDocker's defaultTarget platforms, for example linux/amd64,linux/arm64
--allow-deprecated-connection-requirementsoffLet 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).

Terminal
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.

Terminal
konstera login [flags]
FlagDefaultDescription
--api-url$KONSTERA_API_URL, else https://api.konstera.aiKonstera Platform API URL
--scopesdevx.metadata.readComma-separated scopes to request. The admin can trim them before approving
--tenantnoneSuggested tenant slug. The approval page pre-selects it; the admin decides
--clientkonstera-cli-<os>Client name recorded on the pairing and shown to the admin
--no-fanoutoffSave credentials only; do not write MCP entries into coding-agent configs
--forceoffOverwrite existing konstera-devx MCP entries. The CLI already replaces its own entry on every login, so this rarely changes anything
Terminal
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.

SubcommandWhat 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 listList 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.

Terminal
konstera plugin install <slug> [flags]
FlagDefaultDescription
--api-urlsee belowKonstera Platform API URL to download from
--forceoffReplace 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.

Terminal
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.

Terminal
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.

Terminal
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.

Terminal
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.

Terminal
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:

ToolWhat it does
konstera_sign_inOpens the Konstera portal for a tenant admin to approve; finishes by itself
konstera_statusWhich tenant you're signed in to, the granted scopes, when the token renews
konstera_sign_outEnds 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.

FlagDefaultDescription
--clientclaude-desktopClient name: shown on the pairing, and names its file ~/.konstera/mcp-<client>.json
--api-urlas for konstera plugin installKonstera 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.

Terminal
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:

JSON
{
  "api_token": "…",
  "email": "support@acme.example"
}
FlagDefaultDescription
--file~/.konstera/secrets/<alias>.jsonSecrets file to upload
--keepoffKeep 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:

Terminal
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:

  1. Builds the image and pushes it to --image (or runtime.image in the manifest). For a hosted workspace it builds linux/amd64 by default.
  2. Validates the manifest against the workspace and publishes it with runtime.image set to that image. Publishing the same version again changes nothing.
  3. The agent then shows in the portal under Agents › Catalog, ready to install.
Terminal
konstera deploy [flags]
FlagDefaultDescription
--manifest./manifest.jsonPath to the manifest
--imageruntime.image from the manifestImage to push and publish, <registry>/<repo>:<tag>
--contextthe manifest's folderDocker build context
--dockerfile<context>/DockerfilePath to the Dockerfile
--platformlinux/amd64 for a hosted workspaceTarget platform
--no-buildoffSkip build and push; publish an image that is already pushed
--allow-deprecated-connection-requirementsoffSame 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:

Terminal
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.

SubcommandPlanned behaviour
konstera dev upStart the local dev stack
konstera dev downStop 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.

Terminal
konstera completion zsh > "${fpath[1]}/_konstera"
PowerShell
konstera completion powershell | Out-String | Invoke-Expression

Environment variables#

VariableRead byEffect
KONSTERA_HOMEinstallers, CLIReplaces ~/.konstera as the Konstera folder: the binary goes in $KONSTERA_HOME/bin, credentials and plugins live under it too
KONSTERA_NO_MODIFY_PATHinstallersSet to 1 to keep the installer from adding the install folder to your PATH
KONSTERA_VERSIONinstallersInstall this CLI version (for example 0.3.2) without asking the GitHub API which release is newest
GITHUB_TOKENinstallersSent with the GitHub API call that finds the newest release, so it isn't subject to the anonymous rate limit
KONSTERA_API_URLlogin, plugin install, plugin activateKonstera Platform API URL, used when no --api-url is given. Default https://api.konstera.ai
KONSTERA_SCHEMA_DIRmanifest validateFolder 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.

PathWritten byContents
bin/konstera (bin\konstera.exe)installersThe CLI binary
credentials.jsonkonstera loginTenant, 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.uuidkonstera loginRandom per-install ID used to tell your machines apart in the pairing list
mcp-<client>.jsonkonstera mcpThat client's pairing and tokens, e.g. mcp-claude-desktop.json. Private to your user. Emptied on sign-out
plugins/<slug>/konstera plugin installAn 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 agentConfig 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

What next#