Skip to Content
Joring Docs
Developers

Connect your AI agent

Let Claude Code, Codex, Cursor or an agent you build create, test and publish trails in your team.

A trail is your organization's approved recipe for one job task with an AI tool. You can write trails in Joring, or you can give the work to an AI agent that you already use. The agent uses its own model and pays for its own tokens. Joring gives it the operations it needs to write and publish trails, through a personal API key.

There are two ways in:

Way inBest for
MCP serverClaude Code, Codex, Cursor, Gemini CLI, VS Code and other MCP clients. The tools appear in the agent, so you write no code.
REST APIAgents that you build on the Anthropic or OpenAI APIs, scripts and CI pipelines. The OpenAPI document is at https://api.joring.ai/openapi.json.

MCP (Model Context Protocol) is the standard way for an AI agent to use the tools of another service. The MCP server has the main authoring tools. The REST API can do more: it also manages who can see a restricted trail, archives and deletes trails, and uploads images.

Hosted agents such as claude.ai and ChatGPT sign in with OAuth instead of an API key. See OAuth for hosted agents.

Create an API key

Go to Settings → API keys and choose New key. Give the key only the scopes that the agent needs. See API keys.

Connect your agent

The key dialog shows a configuration snippet for your agent: one command for Claude Code, a JSON block for Cursor and a TOML block for Codex. Paste it into your agent.

Ask for a trail

For example: "Read the Joring authoring guide, then write a trail for account executives handling a competitor objection in ChatGPT. Run the surfacing examples until they pass." The agent writes a draft, tests it, and asks you before it publishes.

Who can use it

API access comes with the Team plan and the Enterprise plan. Anyone who can write trails can create keys for themselves: the Owner, Co-owners, Admins and Trail authors. The Owner, Co-owners, Admins, IT admins and Security admins can also see, rename and revoke every key in the team. See Teams and roles.

What an agent can do

An agent can list and read trails, create drafts and save trail documents. It can test which prompts surface a trail, which means that Joring shows the trail to the person who types them. It can also run a trail's examples, publish and unpublish trails, and restore earlier versions. Through the REST API, it can also manage who can see a restricted trail, archive and delete trails, and upload images.

An agent cannot manage members, billing or policies, and it cannot create API keys.

Joring records each change to a trail in the audit log, with the person and the key or connection that made it. The audit log is part of the Enterprise plan.

NextAPI keys

Create a key, choose its scopes, and replace or revoke it.

On this page