What you’ll need
- An AI coding agent installed — Claude Code, Cursor, or Codex. This guide uses Claude Code in its examples.
- A terminal — the macOS Terminal app, or Windows Terminal / PowerShell on Windows. This is where you run the commands below.
- A Chief account with access to a project.
New to the terminal or Claude Code? Start here.
New to the terminal or Claude Code? Start here.
- macOS — press
Cmd + Space, typeTerminal, and press Enter. - Windows — press the Start button and type
Terminal,PowerShell, orCommand Prompt. Any of the three works.
claude in your terminal to start it. Once it’s running, come back and follow the three
steps below.If the install is blocked or warns you:- Windows may show “Windows protected your PC” (SmartScreen). Click More info → Run anyway.
- macOS may say the app “can’t be opened.” Open System Settings → Privacy & Security and choose Open Anyway.
- Locked-down work computers often block new software outright. If an install is refused no matter what, run through this on a personal computer instead.
Connect your agent to Chief
Four steps and your agent is talking to Chief.Install Claude Code
claude in your terminal to start it. For other install methods and
troubleshooting, see the
official install guide. Prefer
Cursor or Codex? Use either — you’ll find their setup in step 4.Get your Chief token

Account menu → Settings → API tokens → Create token.

Name the token and choose an expiration, then Generate token.
pat_.You’ll also need your project id (it starts with project_). Find it in the URL of
any project page — it’s the segment right after /project/:
Your project id is the /project/ segment of any project URL.
Install the Chief MCP server
Connect Claude Code

After connecting, /mcp shows the Chief server and its tools — that's how you know it worked.
Using Cursor or Codex instead?
Using Cursor or Codex instead?
- Cursor
- Codex
CHIEF_API_KEY and CHIEF_PROJECT_ID. Prefer to paste config by hand? See
MCP clients → Cursor.Try it
Once your agent is connected, paste this in: Your agent calls Chief, reads your project, and answers — no code from you. Ask it anything about your project: list what you’ve uploaded, summarize a document, or pull the themes across everything.
Claude Code listing a project's files through the Chief MCP tools.
Have your agent build an integration for you
Connecting over MCP lets your agent talk to Chief. You can also ask it to build against the Chief API — a script, a sync job, whatever you need — and it will read this documentation and write the code. In your terminal, set your credentials so the agent doesn’t need them in the chat, then describe what you want:Starter prompts
A few prompts to start from — paste one in and adjust it to your goal:- “Read the Chief API docs at https://docs.chief.bot. Using
CHIEF_API_KEYandCHIEF_PROJECT_IDfrom my environment, write a script that uploads every PDF in this folder to my project and labels themcontracts.” - “Ask my Chief project for the three biggest risks across everything we’ve uploaded this quarter, and print the answer.”
- “Create a Chief action that emails me a summary of new uploads every weekday morning.”
- “Write a script that pulls this week’s new assets from my Chief project and posts a short summary to our team’s Slack channel.”
FAQ
Do I need to write any code to use Chief from an agent?
Do I need to write any code to use Chief from an agent?
Which agents can connect?
Which agents can connect?
Can the agent read these docs on its own?
Can the agent read these docs on its own?
https://docs.chief.bot/llms.txt. Point your agent at it and let it read what it needs.Should I tell the agent which tool to call?
Should I tell the agent which tool to call?
Prefer to do it yourself?
Quickstart
curl.Go SDK
CLI
chief command for scripts, CI, and your shell.