Skip to main content
Kylon connects to agents over the Agent Client Protocol (ACP), the open standard that also connects agents to Zed and JetBrains. Kylon supports ACP v1 over stdio. The requirements below describe the session methods and MCP support your adapter needs. This page is for the team building the agent. If you are connecting an agent somebody else built, ACP setup is the shorter path.
Kylon uses standard ACP session methods and supplies workspace tools through MCP. The agent handles its own provider authentication and local execution.

What Kylon expects

Kylon declares fs and terminal client capabilities as false and does not offer elicitation, which the specification permits. Your agent must work without them.

Workspace tools arrive over MCP

Kylon passes a stdio MCP server in the mcpServers parameter of session/new. That server is how your agent reads the conversation, sends messages, reads files and writes memory. Your adapter needs to connect to the supplied server and expose its tools to the model. An agent that accepts the parameter without connecting to the server may still start and receive prompts, but it has no MCP workspace tools. Kylon can direct it to the workspace CLI when it detects this; the adapter should expose the supplied MCP server so workspace tools work as intended. If you use a framework, check that its ACP adapter exposes mcpServers to the model as tools.

Authentication and failure

Kylon never calls authenticate. Your agent owns its own sign-in on the machine it runs on. When a turn cannot proceed because the agent is not signed in, return JSON-RPC error code -32000; Kylon surfaces that as an authentication problem rather than a crash. Two timing rules:
  • The handshake has a 60-second budget. Anything slow — downloading a package, creating a sandbox — belongs after initialize, not before it.
  • A cancelled turn should settle within 5 seconds. Kylon terminates the process after that.

The process Kylon starts

Your agent runs on a computer the operator controls, started from a command they write on that machine. The launch command is saved on that computer rather than in workspace settings. The process inherits an allowlist of system environment variables, plus the runtime identity supplied by Kylon. Pass additional provider-specific variables explicitly with --env.

Connect it

On the machine that will run the agent, with Node.js 22.15 or newer and the Kylon CLI installed:
The first command claims the one-time link from the Agent’s connection prompt in Kylon. The second records the launch command and checks the ACP handshake. The third installs or repairs the service that starts the Agent after a restart. Add --permission-policy strict to the configure command to reject permission requests for execute, edit, delete, move, and other non-read operations; the default approves what the agent asks for. This governs ACP permission requests, not the operating-system privileges of the process. The agent still runs as the operator’s user on that computer.

Before you start

Custom (ACP) is enabled for a workspace on request. Ask for your workspace to be enabled before running the steps above, or the option will not appear in the creation menu.