> For the complete documentation index, see [llms.txt](https://docs.cleric.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cleric.ai/setup/setting-up-with-a-coding-agent.md).

# Setting Up with a Coding Agent

Let Claude Code, Codex, Cursor or another coding agent set Cleric up over Cleric's MCP server

If you're automating your production work with agents, it's only fair if you can automate all of Cleric's setup with agents too! You can use your coding agent to set Cleric up for you via MCP. Use it to figure out what infrastructure and observability tools to connect, route your alert and release channels to Cleric, and help you test everything with a first investigation.

## Get Started

1. Open **System Health** in Cleric and pick your agent under **Set up Cleric with your coding agent**: Claude Code, Codex, Cursor or Other. Any agent that can connect to an MCP server over HTTP works.
2. Run the commands it shows from within your main code repository, the one that describes where your services run. They include your API key, which Cleric shows only once.
3. Start setup with the prompt it shows. In Claude Code, that's `/mcp__cleric__onboard`.

## What to Expect

Some steps like Slack and GitHub connections require you, so those come first. Your agent gives you a link to approve each one.

Your agent will search your repository for the tools your team uses and show you one table: each tool, where it was found, whether Cleric supports it, and whether it is connected. You decide which ones to connect to Cleric.

Cleric only gets read-only access. If your infrastructure is code, the agent opens a pull request for you to review. Once something is connected, it asks Cleric about one of your services and shows you the answer.

## What to Know

* **It asks first.** Your agent will check with you before it creates a role, key or trigger, or changes how Cleric joins incident channels.
* **Keys you paste will go to your agent's model provider.** You can enter them under **Integrations** in Cleric instead if you don't want this.
* **It acts as you.** Your API key ends up in your agent's config and your shell history, and Cleric records what the agent does under your name.
* **Don't see the section?** It shows only until Cleric finishes calibrating, and only where agent-led setup is turned on. Ask Cleric support, or connect your agent as the [MCP Server](https://docs.cleric.ai/integrations/mcp.md) page describes.
