Skip to content

feat: Remote permission server #1187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

hegasz
Copy link

@hegasz hegasz commented May 31, 2025

What

This PR introduces a remote permission mode to Codex CLI, enabling the agent to request command approval decisions from a remote permission server.

Why

I needed this for a project I'm working on; this is the minimal set of features I needed for my use-case but happy to polish and extend if this is something people want. Remote permission opens the door for quite a lot of downstream applications. For example, as these things get increasingly capable and people start wanting to run many in parallel, something like this is needed to avoid ending up stuck staring at dozens of tmux panels.

How

  • Added new CLI flags: --remote-permission, --permission-server-url, and --agent-id to configure the remote permission workflow.
  • Implemented a socket.io-based websocket client (requestRemotePermission) to connect to the server.
  • Added runRemoteMode to cli.tsx - similar to existing runQuietMode.

Copy link

github-actions bot commented May 31, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@hegasz
Copy link
Author

hegasz commented May 31, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant