Skip to main content

User guide · Chapter 3 of 12

Connecting your AI agents to ODIN

How to connect Claude Code, Claude, ChatGPT, Codex, Cursor and any MCP agent to ODIN, how sign-in works, and how to sign in again in each one.

On this page

By Monday lunchtime Acme has a company, a team and nothing in its agents yet. This chapter connects them. Every agent reaches ODIN the same way: ODIN's MCP server at https://api.viliha.com/mcp, with a sign-in that opens in your browser. MCP is the open standard agents use to talk to tools.

How do I connect Claude Code?

Install the ODIN plugin from its public marketplace, inside Claude Code:

/plugin marketplace add myviliha/odin-plugins
/plugin install odin@viliha

Then sign the plugin in once, in a terminal:

curl -fsSL https://api.viliha.com/install | sh

It asks for your personal token, which you make in the console under Settings, API tokens. The token is kept in your macOS Keychain, or in a file only you can read. From then on every Claude Code session starts with your project's context, and ODIN's gate checks each action before it runs. If the plugin is installed but not signed in, each session tells you so at its start.

How do I connect Claude on the web or desktop?

Open Settings, Connectors, choose Add custom connector, and paste https://api.viliha.com/mcp. Claude opens ODIN's consent page in your browser. It shows the app's name, where it will send you back, and the founder's welcome. Check that you started this from Claude, then click Allow.

How do I connect ChatGPT?

In ChatGPT, add ODIN as an app with the address https://api.viliha.com/mcp and sign in when asked. On Business and Enterprise workspaces an admin may need to allow custom apps first. In a chat, type @ODIN followed by what you want, such as @ODIN what are the release rules for Fleet?. The app is used for that message.

How do I connect Codex, Cursor, VS Code or Gemini CLI?

Add an MCP server in the tool's settings with the type HTTP and the address https://api.viliha.com/mcp. The first time you use it, it opens ODIN's sign-in in your browser. In Claude Code you can also add ODIN's tools alone, without the plugin's gate:

claude mcp add --transport http odin https://api.viliha.com/mcp

The plugin is better: tools alone give your agent ODIN's answers, but no gate and no record of the work.

How do I sign in again?

It depends on the agent:

Agent Sign in again
Claude Code /odin:login, which tells you to run the install command again
Claude (web, desktop) Remove ODIN in Settings, Connectors and add it again
ChatGPT Reconnect ODIN in the app's settings
Codex, Cursor, others Remove and add the MCP server, or use the tool's own reconnect

Every time you sign in again you see the founder's welcome. Signing in again does not change whether ODIN is on, paused or off.

Questions

Can one person use several agents?

Yes. Connect as many as you like. They all read the same record and your personal space, so a preference you tell one agent is known to the others.

Does ODIN see my code?

The gate sees the command or file path an agent is about to use, never a file's content. Only work in a repository of one of your company's projects is recorded; anything else on your machine is yours.

What can an app do once I allow it?

It acts as you, in the company you approved it for, with your permissions and nothing more. Platform administrators can also give an app their platform rights, but only by ticking that box on the consent page.