Agent handoff

Clipboard between Claude and Codex

A clipboard between Claude and Codex is real when both coding agents are paired to the same ShareBit AI account: one agent calls sharebit_create to publish approved text, and the other calls sharebit_read to pull it back.

TL;DR

  • Pair Claude Code and Codex to the same ShareBit AI account. One agent shares a block of text, the other reads it by id or link.
  • The handoff is Markdown, up to 10 MB, private to your account, and gone when the timer runs out. The default lifetime is 30 minutes.
  • This moves a piece of text between agents. It does not move chat history, memory, or a conversation.

The problem

You spend forty minutes in Claude Code on a migration. It nails the plan, writes the diffs, and drops a long explanation in the terminal. Then you hit the rate limit. You open Codex because a different model sometimes unblocks you, but Codex knows nothing about the plan, the diffs, or the choices you already explained. You are back to square one.

So you do the ritual. You scroll the terminal, select a few hundred lines, and paste them into Codex. Or you ask Claude Code to "write a handoff file", commit it, and tell Codex to read it from the repo. You might dump the transcript to disk and cat it into the next session. You might paste the whole thing into a Gist, copy the Gist id, build a preview URL, and send it. Forget one privacy toggle and the output is public on the internet.

Every one of those is a bridge you built by hand. Copy-paste loses formatting and truncates at the edges. A sidecar file needs write access to the repo and leaves junk behind. A Gist is a public publishing surface doing a private job. And none of them are meant for the moment you actually have: one agent has a wall of text, and another agent needs to read it.

That is the whole job. Not memory, not a live session, not a shared workspace. Just: get this text from agent A to agent B, privately, for a few minutes, without touching the repo or the clipboard manager.

The exact mechanism

ShareBit AI is a private, temporary clipboard for coding-agent output. It runs a hosted MCP server that exposes four account-scoped tools: sharebit_create, sharebit_list, sharebit_read, and sharebit_rename. The plugin lives at github.com/DinoQuinten/sharebit-mcp.

For a Claude-to-Codex handoff, the mechanism is exactly this:

  1. Both agents are paired to the same ShareBit AI account. Each agent gets its own revocable credential from a one-time pairing code. Nothing is shared between accounts. There is no public sharing mode, and a paste belonging to a different account is rejected.
  2. Agent A calls sharebit_create. It uploads approved Markdown and gets back a private link plus an id. The paste carries your saved lifetime: 30 minutes by default, up to 24 hours.
  3. Agent B calls sharebit_read with that id or link. It gets back the exact Markdown that was stored, with no summary, re-typing, or truncation. The body is stored up to 10 MB and is never split.
  4. The paste expires on its own. When the timer ends the body becomes unreadable, and the title and timing metadata stay on your account for 7 days.

sharebit_list lets either agent find active pastes, newest first, and filter by the agent that created them. It returns metadata only, never paste bodies.

"Clipboard between Claude and Codex" means the coding agents Claude Code and Codex. Both pair through the plugin. It does not mean the hosted Claude.ai web app or the ChatGPT connector. Those connectors are not built, and there is no browser-chat-to-browser-chat path or memory transfer. For the general version, see clipboard for AI agents and share text between agents.

A concrete walkthrough

  1. Sign in. Go to sharebitai.sid8x.com and continue with Google. Free, no credit card. You can start from the sign-in page.
  2. Pair Claude Code. Follow the agent guide, run the setup command in Claude Code, and enter the one-time pairing code. There is no API key to copy. The agent now holds its own credential.
  3. Pair Codex the same way, on the same account. Repeat the setup in Codex. Both agents now sit under one account, so both can read what the other creates.
  4. Finish work in Claude Code. When the output is ready, say: "Share this as a ShareBit paste." Claude Code calls sharebit_create, shows you a preview, and waits for your approval as instructed by the plugin.
  5. Approve, then take the link or id. After approval you get a private link and an id. If you lose it, run sharebit_list in either agent to find the newest paste.
  6. Read it in Codex. Say: "Read the ShareBit paste <id>." Codex calls sharebit_read and gets the exact Markdown back.
  7. Keep working. The paste clears itself at expiry. Nothing to clean up in the repo, and nothing public.

Comparison

You want to moveCopy-pasteSidecar handoff fileShareBit AI clipboard
A wall of agent outputYes, but formatting and length sufferYes, if you commit itYes, exact Markdown up to 10 MB
Between two agentsManualBoth agents read the same fileOne writes, the other reads by id
Between two machinesYes, by handOnly with the repoYes, it is hosted
Without repo write accessYesNoYes
Expires automaticallyNoNo, it lingersYes, 30 minutes by default
Account-privateDepends where you pasteReadable by anyone with the repoYes, no public mode
Moves conversation historyNoNoNo; it moves only the text you choose

Limits

  • One account, not across accounts or vendors. Both agents must be paired to the same ShareBit AI account. There is no cross-account read path, so this is not a bridge between your account and a teammate's, or between Anthropic and OpenAI in any hosted sense.
  • Not a memory or chat-history transfer. sharebit_create stores a block of Markdown. It does not move your conversation, your agent's memory, or hidden reasoning. If you need the model to see prior turns, that is a different tool.
  • The agent has to be asked to share. Human approval is guidance the plugin gives the agent, not enforcement by the server. The service cannot see your conversation or verify that a preview was shown. Only pair agents you trust, and do not share credentials, environment variables, or private reasoning.
  • Not end-to-end encrypted. The connection is HTTPS, but the operator and the database provider can technically read stored content. Do not use it for passwords or secrets.
  • No delete tool over MCP. Your agent cannot delete a paste. Revoking a paired agent is done in the web app, and paste content is cleared by a scheduled job at expiry, not on request.
  • The hosted chat connectors do not exist. Claude.ai and ChatGPT in the browser are not supported. Only the pairing-based coding agents are.

FAQ

Can Claude Code and Codex share text with each other? Yes, if both are paired to the same ShareBit AI account. One calls sharebit_create, the other calls sharebit_read with the id or link. This was tested and verified with two agents on one account.

Does this move my conversation history or memory? No. It moves the specific text you approve and nothing else. It is a clipboard for a piece of output, not a way to transfer a transcript, an agent's memory, or a session.

Does it work with Claude.ai and ChatGPT in the browser? No. Those hosted connectors are not built. "Clipboard between Claude and Codex" refers only to the coding agents that pair through the plugin. If you want to understand the general idea first, read what is an AI clipboard.

Is it encrypted? The transport is HTTPS, but it is not end-to-end encrypted. Whoever runs the service and the database provider can technically read stored content, so treat it as private to your account, not secret.

How do I delete a paste? There is no delete tool over MCP. You can revoke a paired agent from the web app, and the paste body is removed by a scheduled cleanup job when its timer expires. The title and timing metadata are kept for 7 days after that.

Do this next

Open sharebitai.sid8x.com, continue with Google, and pair both agents to one account. Then ask Claude Code to share a block of text and Codex to read it. Each agent needs one pairing, and setup needs no payment or API key. Full steps are in the agent guide.