Skip to content

Set up Argentic withyour coding agent.

Building with a coding agent? Connect our MCP server and it wires Argentic into your agent's loop, then lets you inspect runs. Argentic runs your agent, not your coding session. Paste one prompt into any coding agent: it connects the server, signs you in, asks it how to integrate, and moves your agent's loop onto Argentic.

Paste one prompt

Paste this into Claude Code, Codex, Cursor, Windsurf or any coding agent that can run commands in your project. It adds the Argentic MCP server and you sign in in your browser. Your agent then makes an API key for the project, writes it to .env after making sure that file is git-ignored, and follows the steps the server gives it. You copy no key. The prompt is short on purpose and never changes: the steps live in the connector, so they can improve without a new prompt.

Prompt

Add Argentic to my app.

1. Add the Argentic MCP server to this coding agent, as a remote HTTP server at https://getargentic.com/mcp, in whichever way this agent adds one, and sign in through the browser. If this agent can't sign in to a remote server, or the sign-in is refused, use https://api.getargentic.com/mcp instead, with the header "Authorization: Bearer" followed by the value of the environment variable ARGENTIC_API_KEY, read from my environment. Exact config for each client: https://getargentic.com/docs/mcp.md
2. Call the setup_argentic tool.
3. Follow what it returns.

Never ask me to paste a key into this chat.

If your agent can't sign in

Some clients, Cursor among them, can't sign in to a remote server yet. For those, make an API key in the dashboard and put it in your environment first. The prompt then has your agent connect with that key, read from the ARGENTIC_API_KEY variable, so you never type it into a chat.

bash, zsh

export ARGENTIC_API_KEY="aek_your_key"

fish

set -Ux ARGENTIC_API_KEY aek_your_key

What your agent does next

The prompt makes your agent add the Argentic MCP server, call its setup_argentic tool and follow the steps it returns. The server answers with the current guide, also served as Markdown at /docs/integrate.md.

Argentic runs the agent loop you already have. Today your app resends the whole conversation to the model on every step. With Argentic it sends only the new event as task, with a runId, your system prompt, your tools and a model. Argentic keeps the history. Your tools still run in your code, with your auth.

Your agent looks at your dependencies to find the framework: Vercel AI SDK, OpenAI Agents SDK, LangGraph, Mastra, Pydantic AI, Deep Agents and the Claude Agent SDK, or a plain model SDK. It asks which model you want and which provider key goes with it, because Argentic has no default model. It runs one small test call and reports what it cost. Your own model key is yours to add to .env: it never asks you to paste a key into the chat.

Claude Code

The prompt does this for you. To add it yourself, add the marketplace and install the plugin, then run /mcp and sign in to argentic.

claude plugin marketplace add Argentic-AI/argentic-plugins
claude plugin install argentic@argentic

Prefer the MCP server alone? Add it, then run /mcp to sign in.

Add the server

claude mcp add --transport http argentic https://getargentic.com/mcp

Claude.ai and Claude Projects

Open Customize, then Plugins, press + next to Personal plugins, choose Add marketplace and then From a repository, and enter Argentic-AI/argentic-plugins. That installs the skills.

The tools need a custom connector: Customize, Connectors, Add custom connector, and enter https://getargentic.com/mcp, then sign in. No model key or request header is needed.

Codex

Add the marketplace for the skills, then add the server to ~/.codex/config.toml. Then run codex mcp login argentic to sign in.

codex plugin marketplace add Argentic-AI/argentic-plugins

~/.codex/config.toml

[mcp_servers.argentic]
url = "https://getargentic.com/mcp"

Cursor, VS Code and others

These connect with your API key, read from the ARGENTIC_API_KEY variable you set above. The exact config for each client is on the MCP server page.

What your agent can call

Each tool is one call to the same API the reference describes, so keys, limits and error codes behave the same.

setup_argentic
The steps for adding Argentic to your agent: find its loop, pick the client for your framework, place the keys, replace the loop, test. Free.
argentic_wakes / argentic_wake_get
Find runs and read one: its state, steps and answer. Free.
argentic_replay
Check a run's proof: the journal still reproduces what the model was shown. Free.
get_account / get_usage
Your organization, its limits and what recent days cost. Free.
list_api_keys / create_api_key / revoke_api_key
Manage your API keys. A new key is shown once.
set_spend_limit
Change your organization's monthly spend limit. Owners and admins.

Cost and limits

Nothing here runs a model or spends on your model account: your app wakes your agents. The MCP endpoint does not stream. The downloadable journal file (hash-chained, not signed) is a REST route, not a tool.