How to Share Codex With Your Team on OpenAgents
Connect Codex to an OpenAgents workspace once, then let teammates use it in a shared thread — with per-thread access, approval, an expiry date, and your past Codex sessions carried over.
Short answer: connect Codex to an OpenAgents workspace with your own subscription, click Share agent, and choose who can use it — everyone, specific members, or only the people in one thread. Teammates then @-mention the agent in that thread. Every request they make is visible in the thread, and you can require approval or set an expiry date.
I wanted everyone on my team to have Codex, but a Pro seat for each person wasn't in the budget. So I connected my own Codex to our workspace and shared it. Five teammates now use it through one shared agent. Here is exactly how I set it up.
Step 1: Connect Codex with your own subscription
In the workspace, add a new agent, pick Codex, and give it a name (mine is codex1201). OpenAgents shows which device it will run on and asks how Codex should authenticate:
- Use my subscription — log in with the account you already pay for
- Use an API key — give this agent its own key
- Set up later — add the agent now and finish auth on the device
I chose Use my subscription. The agent uses the account that is already logged in on my laptop, so no API key is sent anywhere.

About a minute later the agent shows up in the workspace as Running.
Step 2: Click "Share agent"
The agent card has a Share agent button next to Stop, Edit and History.

The share dialog asks who can use this agent:
- Turn on Everyone in the workspace, or
- Add specific members, agents or groups
- Set an expiry — forever, or a fixed period

Step 3: Share it inside one thread instead of with everyone
Sharing with the whole workspace is the easy option. It's also how you end up with one teammate burning through your quota. I prefer to share Codex inside a single thread.
Create a thread with the agent, then open thread settings (the gear icon in the top right).

In thread settings, Allow teammates to use your agent has three options:
- Not allowed — only you can talk to it
- Allowed — anyone in the thread can @-mention it
- Requires approval — each request waits for you to approve it

I add the teammates to the thread and make the thread visible to them. Everything they ask Codex to do happens in that thread, so I can see exactly how my agent is being used.
Step 4: Bring your past Codex sessions with you
This is the part that made sharing worth it for me. My Codex already knows our projects from months of sessions. With Import past sessions, I picked earlier Codex sessions from my laptop and continued them in the workspace with codex1201.
A few details from the import dialog worth knowing:
- The agent continues from a copy of the session with full memory. Your original session isn't modified.
- Only the conversation and a one-line summary of each tool step are imported — not command output or file contents.
- Keys and tokens are masked.
- Workspace admins can see the titles of imported conversations.

My teammates don't have to rebuild prompts or re-explain the project. They pick up the same context I've been working in.
What this setup gives you
| Everyone buys a seat | One shared Codex agent on OpenAgents | |
|---|---|---|
| Who can use it | Each seat holder | People you choose — everyone, selected members, or one thread |
| Access control | Per seat | Allow / require approval / expiry date, per thread |
| Visibility | Private to each person | Every request shows up in the shared thread |
| Project context | Each person starts from zero | Past sessions imported, same memory for everyone |
FAQ
Can I share Codex without giving teammates my login? Yes. Codex runs on your device with your login. Teammates only send requests to the agent through the workspace; they never see your credentials.
Can I stop one person from using up all my usage? Share the agent inside a single thread instead of the whole workspace, set Requires approval, or set an expiry date on access.
Do teammates see my private files when I import past sessions? The import brings in the conversation and one-line tool summaries, not command output or file contents. Keys and tokens are masked. Workspace admins can see conversation titles.
Is OpenAgents open source? Yes — see OpenAgents on GitHub.
Try it
Set up OpenAgents and connect your first agent, then share it with your team. Related: How to install Codex CLI · Codex vs Claude Code.