Connect Codex to Desklet.

On your computer with the Desklet app, with two commands, or with the Desklet CLI and skill.

Start free trialYou need a Desklet account. 14 days, no card.
On this page

On your computer, with the Desklet app

The open-source Desklet app starts Codex on the computer that does the work. On macOS and Linux each agent changes only the folder you add, and your key stays on that computer.

  1. Install Desklet with Homebrew, or with the install script where there is no Homebrew. On Windows, use these steps inside WSL 2.

    brew install --cask desklet-io/tap/desklet
    curl -fsSL https://raw.githubusercontent.com/desklet-io/desklet/master/install.sh | sh
    Desklet on Windows
  2. Check that your terminal finds it. If it says “command not found”, run the line the installer printed under “Action needed”.

    desklet --version
  3. Connect the computer. Open the link it shows, check that the code matches and click Connect.

    desklet host connect
  4. Check that protection is on. It prints what to fix if it isn’t.

    desklet host doctor
    What protection does
  5. Add the project folder. In a git project each task works in a separate copy.

    desklet host folder add ~/projects/my-app
    What not to add
  6. Store an OpenAI API key. It pays for the work by use, separately from a Claude or ChatGPT plan, and stays on this computer: Desklet never gets it.

    OpenAI API keys
    desklet host login codex --key
  7. Start Desklet at login.

    desklet host install
  8. In Desklet, open Settings → Agents → Add an agent and pick Codex and Desklet runs it for you. Pick the computer, then the folder and the desks it sees; More settings holds who may give it tasks.

    What not to do
  9. On a desk, add a Tasks region, click Use next to the agent and write a task. Read the report, then apply the changes to the folder or discard them.

With two commands

The Codex CLI, the IDE extension and the ChatGPT desktop app share this setup.

  1. Add Desklet in a terminal.

    codex mcp add desklet --url https://desklet.io/mcp
  2. Sign in. Adding Desklet does not start the sign-in.

    codex mcp login desklet
  3. Tell it this. It takes your tasks while it stays open.

    Listen for my Desklet tasks.

With the Desklet CLI and skill

For Codex on a computer where it runs shell commands.

  1. Install the Desklet CLI with Homebrew, or with the install script where there is no Homebrew.

    brew install --cask desklet-io/tap/desklet
    curl -fsSL https://raw.githubusercontent.com/desklet-io/desklet/master/install.sh | sh
  2. Check that your terminal finds it. If it says “command not found”, run the line the installer printed under “Action needed”.

    desklet --version
  3. Sign in once. The browser opens and asks which desks this computer sees and the mode. It shows up in Settings → Agents as Desklet CLI.

    desklet login
  4. Add the Desklet skill, which teaches Codex the CLI and its rules.

    npx skills add desklet-io/desklet

Keep it safe

Connected with two commands, Codex runs with your own permissions, outside the Desklet app. This profile keeps it to the project: it can’t read your other files, its commands have no network and it asks before Desklet tools that add.

In ~/.codex/config.toml:

approval_policy = "on-request"
default_permissions = "desklet"

[permissions.desklet]
extends = ":workspace"

[permissions.desklet.filesystem]
":root" = "deny"
":minimal" = "read"

[permissions.desklet.network]
enabled = false
  • Put approval_policy and default_permissions at the top of the file, before the first [table] line: below a table, such as the [mcp_servers.desklet] that codex mcp add wrote, they belong to that table and do nothing.
  • This profile is for the connection above: with the Desklet CLI and skill it blocks the desklet commands.
  • In the [mcp_servers.desklet] table that codex mcp add wrote, add default_tools_approval_mode = "writes": Codex then asks before Desklet tools that add.
  • The network setting covers the commands Codex runs, not MCP servers, web search or connectors.
  • default_permissions makes this profile the default for every Codex session on this computer, not only this project.
  • Remove sandbox_mode and [sandbox_workspace_write] from every Codex config file and don’t start it with --sandbox: with those older settings Codex ignores this profile.
  • Permission profiles are the only way Codex documents to stop reads outside the project, and its docs still call them beta. The workspace-write mode alone limits writes and the network, not reads.
  • Codex has its own sandbox on native Windows in PowerShell, and the Linux one under WSL 2.
  • Never start it with --dangerously-bypass-approvals-and-sandbox (--yolo).

Codex sandboxing · Run agents safely

When you sign in

Desklet asks which desks Codex may see, and whether it may only read (Read) or also put results on them (Read & add). Codex then shows up in Settings → Agents. On your computer, you choose the same in Add an agent.

Try asking

  • “Check Desklet for the screenshots on the Bugs desk and fix what they show.”
  • “Put the result on Desklet.”

If it doesn’t work

If Codex can’t reach Desklet, sign in again:

codex mcp login desklet

What an agent can do

  • It never deletes anything on your desks, whether it connects by itself or runs on your computer.
  • It sees only the desks you choose.
  • You pick the mode: Read, where it only looks, or Read & add, where it also puts results on the desk.
  • You can disconnect or remove it any time in Settings → Agents, or revoke an AI link from the desk’s menu.