Docs Coding agents
DocsSDKs & UICoding agents

Connect a coding agent

Connect Codex or Claude Code to Norilu, then build, test and integrate a released agent from your project.

View Markdown
On this page

Before you start

Your coding agent connects to the workspace MCP server at https://app.norilu.com/mcp. Setup starts with read access (norilu:read), which you approve in your browser with your Norilu sign-in. The client receives OAuth credentials directly.

Sign in to your Norilu workspace first. If you received an offer link, review its terms and complete any checkout in your browser. In Norilu, Settings → Coding agents gives you the setup prompt for your selected workspace.

Copy the setup prompt

Paste this into Codex or Claude Code. The agent adds the server, waits while you approve access, and checks the connection without changing anything.

Connect this coding agent to my Norilu workspace through its MCP server, with read-only access.

1. Check whether an MCP server named "norilu" is already configured. If it differs from the configuration below, show me the difference and ask before replacing it. Leave other servers unchanged.
2. Add the server for this client:
   - Codex: add this to ~/.codex/config.toml:
     [mcp_servers.norilu]
     url = "https://app.norilu.com/mcp"
     scopes = ["norilu:read", "offline_access"]
   - Claude Code: run
     claude mcp add-json --scope user norilu '{"type":"http","url":"https://app.norilu.com/mcp","oauth":{"scopes":"norilu:read"}}'
3. Start sign-in. In Codex, run `codex mcp login norilu`. In Claude Code, ask me to run /mcp, select norilu and choose Authenticate. A browser page opens where I approve read access. Then stop and wait for me to confirm. Never ask me to paste tokens, cookies or authorization codes.
4. After I confirm, call norilu_get_workspace({}) and then norilu_list_agents({}). Only read: don't call tools that create or change anything. An empty agent list is a valid result.
5. Report the workspace name and my role from norilu_get_workspace, and how many agents were listed. If the Norilu tools aren't available in this session, tell me to start a new session and then repeat step 4.

Check the connection

The check succeeds when norilu_get_workspace returns your workspace and role, and norilu_list_agents returns a list. A new workspace has no agents yet, so an empty list is expected.

If the agent can’t see the Norilu tools after you sign in, start a new session in the same client. Tools load when a session starts.

Set up Codex yourself

Add the server to ~/.codex/config.toml. If a [mcp_servers.norilu] entry already exists, compare it before you replace it.

[mcp_servers.norilu]
url = "https://app.norilu.com/mcp"
scopes = ["norilu:read", "offline_access"]

Sign in. Your browser opens to approve access.

codex mcp login norilu

Start a new Codex session and ask it to call norilu_get_workspace and norilu_list_agents.

Set up Claude Code yourself

Add the server for your user. If a norilu server already exists, compare it before you replace it.

claude mcp add-json --scope user norilu '{"type":"http","url":"https://app.norilu.com/mcp","oauth":{"scopes":"norilu:read"}}'

In Claude Code, run /mcp, select norilu and choose Authenticate. Your browser opens to approve access. Then ask it to call norilu_get_workspace and norilu_list_agents.

Use a shared workspace

Without a workspace header, the connection uses your personal workspace. To read a shared workspace, add an X-Norilu-Workspace header with its ID. The ID starts with ws_. Your membership and role are checked on every request.

For Codex, add this line to the [mcp_servers.norilu] entry:

http_headers = { "X-Norilu-Workspace" = "ws_your_workspace_id" }

For Claude Code, include a headers object when you add the server:

claude mcp add-json --scope user norilu '{"type":"http","url":"https://app.norilu.com/mcp","oauth":{"scopes":"norilu:read"},"headers":{"X-Norilu-Workspace":"ws_your_workspace_id"}}'

Settings → Coding agents fills in the ID for the workspace you have open.

Build, test and integrate an agent

In Settings → Coding agents, turn on Allow workspace changes and copy a new setup prompt. To configure this yourself, add norilu:write alongside your existing scopes, then authenticate again. Codex uses a TOML array (["norilu:read", "norilu:write", "offline_access"]). Claude Code uses a space-separated oauth.scopes string ("norilu:read norilu:write"). Start a new session after approving access. Your workspace role still determines what you can do.

Install the Norilu onboarding skill to give either client the same setup workflow. Save the file in your application repo at one of these paths.

ClientSkill path
Codex.agents/skills/norilu-onboarding/SKILL.md
Claude Code.claude/skills/norilu-onboarding/SKILL.md

Start a new coding-agent session in the project and ask it to use the norilu-onboarding skill. It checks the workspace first, then helps build and test an agent or use an existing release. A workspace owner or admin completes provider authentication, tool grants, release review and scoped server key creation in Norilu. The skill can open the right page and check the saved result. Enter credentials in Norilu or your server’s secret store.

Once the version is released, follow the server quickstart to verify a conversation from your backend.

Still have a question? Talk to usRead as Markdown

Search documentation

Find a guide, endpoint or concept.

↑ ↓ to navigate · ↵ to openSearch stays in your browser