Allow restricting making CLI network requests only to certain ports on the proxy

Open
#36,277 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust

Research direction

The issue names no files, tests, or entry points. Start by locating the CLI network permission configuration and proxy request handling, then trace how domain and localhost access are evaluated. Done means users can allow selected localhost ports, such as localhost:8000, while denying other ports and retaining existing domain controls.

Written by the indexing model from the issue text.

Description

CLI config connectivity enhancement sandbox
What variant of Codex are you using?

CLI

What feature would you like to see?

I want to allow codex to access certain localhost ports but not others. This is because some servers can give wide system access which I want to prevent.

On codex-cli 0.146.0 I can control access to only certain domains with:

[permissions.workspace_custom.network]
enabled = true
allow_local_binding = true

[permissions.workspace_custom.network.domains]
"localhost" = "allow"
"127.0.0.1" = "allow"

but it does no seem possible to select specific ports only, e.g. localhost:8000?

Additional information

No response

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.