Skip to content

Connect Codex to Stellary

Read your cards and documents from Codex through MCP. For a coding mission launched from Stellary, connect Desktop to the local repository and follow the result in the card.

Codex · connected local CLI

Codex

Connected

Stellary

Launch workspace

Ready
Project context
Prepare release mission
Activity
Identity, project, and tools remain scoped

From project context to a first Codex mission

MCP gives the client access to the project. Desktop lets Stellary launch a mission in the linked repository. Choose the path that matches your task.

  1. 01

    Authenticate

    Install and sign in to Codex on the target machine.

  2. 02

    Detect

    Refresh Stellary Desktop until the Codex runner and models are ready.

  3. 03

    Link

    Connect the project to the exact local repository folder.

  4. 04

    Run

    Assign the card to the agent configured with the Codex target.

  5. 05

    Inspect

    Read the mission trace and review the delivered result.

Mission STL-128

Install and sign in to Codex on the target machine.

Running

Checklist

Detect
Link
Run

Linked context

project-brief.md

A project-repository link tells the runner where the coding mission belongs.

Run mission

The repository and the project stay connected

Codex works locally while Stellary remains the shared source for the card, project context, execution state, and team review.

Exact working repository

A project-repository link tells the runner where the coding mission belongs.

Workspace model visibility

Only ready models shared with the workspace are available to other members and agents.

Mission lifecycle

Queued, running, blocked, failed, cancelled, and completed states stay explicit.

Codex MCP connection with OAuth

Shell

The login command opens Stellary consent in the browser. Select the workspace and access you need.

codex mcp add stellary --url https://api.stellary.co/mcp
codex mcp login stellary
codex mcp list

Alternative: MCP token

TOML

Configuration in ~/.codex/config.toml. Set STELLARY_MCP_TOKEN in the client environment before starting it. A projects:read personal token is enough to explore the project as yourself; an agent mission needs the appropriate identity and permissions.

[mcp_servers.stellary]
url = "https://api.stellary.co/mcp"
bearer_token_env_var = "STELLARY_MCP_TOKEN"

Configuration documentation checked on .

Prepare the client and project

Install a recent Codex version and check that its help includes the MCP commands above. Your AI provider account and your Stellary connection are separate credentials.

Create a Stellary project with a test card, a precise objective, and a context document. Reading this data through MCP does not require a local repository or Desktop.

Verify MCP with a read operation

After OAuth consent, open /mcp in the client and check that Stellary is available. Ask: “Call stellary_init, list the projects I can access, then summarize the test card’s acceptance criteria. Do not modify any objects.”

The check succeeds when the client finds the right project and the criteria actually written in the card. Use IDs returned by list_projects for subsequent calls. Adding a server to configuration does not prove this access.

Prepare a first mission with Desktop

To launch Codex from a card, install and authenticate its CLI on the repository machine. In Stellary Desktop, refresh the runners, share the available runner with the workspace, then link the exact Git folder to the project.

Configure an agent for local execution with Codex. Prepare a card: “Read the README and repository scripts. Propose a verification plan with the relevant commands, without changing files.” Launch the mission and wait for its result in the card Activity.

  • The machine is connected and the runner is ready.
  • The trace identifies the expected project and repository.
  • The result cites the files inspected and distinguishes proposed commands from executed tests.
  • A person reviews the result before starting a code change.

Troubleshoot a failed connection

A 401 response indicates missing, expired, or revoked access. Reconnect OAuth, or check the token and environment variable in the client process.

For a 403 response, check scopes, role, and project access. If a tool is not advertised, also check the selected identity and the agent tool policy.

  • In Codex, bearer_token_env_var holds the variable name, not the token value.
  • If Desktop cannot see the runner, check its installation and sign-in on that machine, then refresh.
  • If a mission stays queued, check the machine, runner sharing, linked repository, and agent target.

Understand where the work runs

A remote MCP connection gives access to the hosted project. A Desktop mission runs on the connected machine; this does not mean the AI model runs locally.

The model provider can receive the context needed for the request and apply its own access or billing terms. Check the selected model and allowed data before sending a sensitive document.

Check executed on November 1, 2026

From Codex, an already authorized agent identity initialized Stellary, opened a mission in the demonstration project, created a card containing fictional data, then read its title and description through MCP. Both fields matched the submitted content.

This check verifies card creation and retrieval on the hosted service. It does not validate a fresh OAuth connection, a Desktop mission, or autonomous application delivery. The protocol and its limits are available in the check record below.

Codex alone or Codex inside Stellary?

Source of work

Standalone Codex session

A prompt entered in the current terminal.

Stellary-managed mission

A card with owner, context, and success criteria.

Repository

Standalone Codex session

Current working directory.

Stellary-managed mission

Repository explicitly linked to the project.

Status

Standalone Codex session

Known by the terminal user.

Stellary-managed mission

Visible from the board and Activity.

Review

Standalone Codex session

Coordinated separately.

Stellary-managed mission

Attached to the original card and mission.

Questions about Codex and Stellary

Does Stellary include the Codex model?

Stellary connects to the Codex CLI installed and authenticated on your machine. Availability and model choices depend on that local runner and what the workspace shares.

Can several projects use the same machine?

Yes, provided each project is linked to the correct repository and the machine is authorized and available. The runner receives the mission with its project target.

Can I stop a local Codex mission?

Mission cancellation is part of the execution lifecycle. The runtime must honor the cancellation and return a visible state to Stellary.

Can Codex also use Stellary through MCP?

Yes. Add the remote server and connect Stellary with OAuth, or use a token through an environment variable. This path provides project tools; Desktop lets you launch missions from Stellary.

Give Codex a card the team can follow

Link one repository and run the first bounded coding mission from Stellary.

Create your first mission