Run and share coding agents with Omnigent
Run Claude Code or Codex through Omnigent to cap spending, switch agents mid-task and share a live session with your team, in under 30 minutes.

What you need
Step 1: Install Omnigent
4 minOne script installs the
omnicommand, and running it again later upgrades you.- Open a terminal and run the two commands below, one after the other.
- The
omni setupwizard looks for logins and keys you already have. Confirm the ones for Claude Code, Codex or both. - If the wizard asks for a default, pick the login you use most.
Run thiscurl -fsSL https://omnigent.ai/install.sh | sh omni setup
You should see the setup wizard listing the credentials it found, each ready to confirm.
The terminal can't find the omni command?
The installer adds
omnito your PATH, and only new windows load that change. Open a new terminal window and runomni setupagain.Step 2: Start your agent inside Omnigent
3 minYour agent runs in the terminal as usual, and the same session opens in a browser you can share later.
- In your project folder, run
omni claude. For Codex, runomni codexinstead. - Open
http://localhost:6767in your browser. - Give the agent a small task, like the one below, and watch both windows.
Your promptRead the files in this project and write a short README.md that explains how to install and run it.
You should see the same conversation in the terminal and the browser, updating together as the agent works.
The agent asks you to log in?
Omnigent reuses each agent's own login. Run
claude auth loginfor a Claude plan orcodex loginfor a ChatGPT plan, or add an API key withomni setup.Keep API keys in
omni setupor your environment, never in files you commit or share.- In your project folder, run
Step 3: Set a spending limit
3 minA cost policy sits outside the agent, so it still holds when a long task runs away.
- In the web UI, click the info button
(i)at the top of the page. - In the Policies section, click
+and pick Session Cost Budget. - Enter a soft limit, such as
5, and a hard limit, such as20, in dollars. Then click Add.
You should see Session Cost Budget listed under Policies, next to the session's running cost.
You can't find the policy list?
Ask for it in the chat: "Add a session cost budget. Ask me at $5 and block expensive models at $20." Then approve the change.
Past a soft limit, the agent asks before its next tool call. Past the hard limit, it blocks expensive models such as Opus until you switch to a cheaper one.
- In the web UI, click the info button
Step 4: Hand the task to another agent
3 minIn Omnigent, a session belongs to you, not to one agent, so a second agent can pick up the whole history.
- In the web UI, open your session and click Clone session.
- Pick Codex as the agent for the copy. Started in Codex? Pick Claude Code.
- Ask the new agent to review the work so far, or to finish it.
You should see a second session that holds the full conversation so far, now answered by the other agent.
The other agent isn't in the list?
Omnigent can only offer agents it can sign in to. Run
codex loginorclaude auth login, or add a key withomni setup, then clone again.You can't change the agent of a running session. The clone leaves the first session as it was, so you can compare the two.
Step 5: Put Omnigent on a shared server
12 minTeammates can't reach a server that runs on your laptop, so sharing needs one in the cloud.
- In Railway, import the Omnigent repo from GitHub and add a Postgres plugin to the project.
- In the omnigent service's Variables, add
DATABASE_URLset to${{Postgres.DATABASE_URL}}. Then redeploy. - Copy your server's URL and run the two commands below with it.
Run thisomni login https://[YOUR SERVER URL] omni host https://[YOUR SERVER URL]
You should see your sessions in the browser at your server's URL, on any device where you sign in.
The deploy fails with "DATABASE_URL is required"?
Adding Postgres doesn't connect it to the app by itself. Add the
DATABASE_URLvariable as shown above, then redeploy.omni loginsigns you in to the server.omni hostregisters your laptop, so the server can send agent work to it.Step 6: Share the live session
2 minA teammate can watch the agent work, or help steer it, from a browser with nothing to install.
- Open the session from your server's URL and click Share.
- Pick Read to let them watch, or Edit to let them send messages and answer approvals.
- Send them the link.
You should see your teammate in the session, seeing each message and tool call as it streams.
The Share button is missing?
The server's admin can limit sharing or turn it off. If that's you, check the session sharing settings.
Edit lets a person run code on the machine that hosts the session. Give it only to people you trust.
You get
Claude Code and Codex running through Omnigent, with a spending limit, a way to switch agents mid-task and live sessions your team can join
Try next
Did this guide work for you?
Thanks. It helps us fix the steps.
Sources
0 of 6Next: Install Omnigent


