How to Choose Between Codex Plugins, Skills, MCP, and Internet Access: Define the Boundaries Before You Extend Capabilities

Securing Codex Internet Access means distinguishing between execution environments. In Cloud, set network access separately for the Agent phase and the Setup script. Give a task only the network egress it needs, and restrict access to specific domains and methods. Avoid broad permissions such as "allow all domains" to guard against prompt injection, secret leakage, and malware, and to uphold the principle of least privilege.

12 min read
How to Choose Between Codex Plugins, Skills, MCP, and Internet Access: Define the Boundaries Before You Extend Capabilities

AI Code With · A Guide to Codex Extensibility and Security Boundaries

The first time you use Codex for anything beyond editing code, it's easy to fall into a trap: you see the names Plugin, Skill, MCP, and Internet Access, and instinctively read them as four ways to "add features" to Codex.

The result: you only wanted Codex to write a report following fixed rules, but you wired up a remote MCP first. You only needed to look up an official doc, but you opened up all of the Cloud Agent's network egress. Or you installed a plugin without figuring out whether it contained a Skill, an external App, or an MCP service that needs extra authentication.

These capabilities do all extend Codex, but they extend completely different layers. Choose wrong, and the best case is an extra config to maintain. The worst case is that you carry unnecessary account permissions, network permissions, and sensitive data into the task.

First ask whether the task is missing rules, tools, packaged delivery, or network egress, then decide what to install.

1. Remember this picture first: the four capabilities don't sit on the same layer

CapabilityWhat it mainly solvesDoes it introduce external permissions?Best-fit scenarios
SkillTells Codex what process to follow, what facts to read, and how to verify the resultNot necessarily; a purely local Skill needs no network at allFixed writing workflows, code review rules, in-project operating conventions
MCP / AppLets Codex access external tools, data, or actionsUsually, depending on the connected service and tool permissionsQuerying databases, accessing third-party systems, calling remote tools
PluginPackages a set of reusable capabilities for delivery; can include Skills, Apps, and App templatesDepends on the capabilities the plugin includesA team distributing a complete workflow
Internet AccessLets a specific execution environment reach the external networkYes; the risk depends on the allowed domains and methodsDownloading dependencies, reading sites, calling external APIs

The point of this table isn't to memorize definitions. It's to avoid the "X replaces Y" misunderstanding. A Skill isn't an MCP, MCP isn't Internet Access, and a Plugin isn't a fancier MCP.

OpenAI's current product terminology is also clearer than in early tutorials: a Plugin is a packaging container for workflow capabilities and can include Skills, Apps, and App templates; Apps connect to external systems, data, and actions; custom external tools can still be built with MCP.

2. If you only lack a stable way of working, reach for a Skill first

A Skill is closest to an "executable work instruction." It doesn't necessarily give Codex a new external capability. Instead, it locks in a process you would otherwise have to explain again every time.

Skills are especially well suited to these three kinds of tasks

• Repeated rules: the same checking, writing, testing, or auditing process comes up again and again.

• A fixed source of truth: you need to read PRODUCT_KNOWLEDGE, AGENTS.md, style guides, and similar files in the project.

• Clear acceptance criteria: the task must pass a fixed QA, test, or release gate before it's done.

When you shouldn't force in an MCP just to be "more complete"

If the task only needs the current repository, local files, commands, and fixed rules, a Skill is enough.

For example, "scan the current project's Markdown and rewrite it according to the established House Style" needs no access to external accounts. Adding a remote MCP for it only brings extra authentication, availability concerns, data boundaries, and troubleshooting.

If a process can close the loop locally, keep it local.

3. Consider MCP / App only when what's missing is external data or actions

MCP / App only becomes truly valuable when a task has to leave the current project to reach third-party systems, remote databases, team accounts, or external tools.

What these add isn't just "the ability to look up more information." They also add four things: identity authentication, read scope, write scope, and a revocation path for when something goes wrong.

Before installing, ask at least five questions

• What data can it read? The whole account, or just one project/repository?

• What write operations can it perform? Does that include sending messages, deleting records, and changing configuration?

• Where do the credentials live? OAuth, a token, environment variables, or local config?

• Does each write operation require confirmation? Can you narrow the default permissions to read-only?

• After you disconnect, revoke the token, or remove the MCP, does the capability actually stop?

A realistic example: having Codex query the company knowledge base

If the requirement is just "consult the company knowledge base when writing proposals," the easiest mistake is to give it an account that can read every space and also edit pages.

A more sensible approach: open read access only to the target knowledge base or space, run a minimal query to verify it can fetch the information you need, and only after confirming no data leaks across boundaries decide whether you really need write access.

The thinking here is the same as with network permissions: don't ask "can I turn it on?" Ask "what is the minimum I need to turn on for this task?"

4. A Plugin is for "delivering a whole set of capabilities to others," and more features isn't better

A Plugin is more like a workflow package you can install, distribute, and maintain. Under the current OpenAI plugin system, a Plugin can contain only Skills, can bring along external Apps, or can include an App template that an admin needs to configure.

So if your team already has a stable workflow, for example:

A code security review Skill

+

A GitHub / ticketing system App

+

The necessary templates and configuration

=

A distributable Plugin

That's when a Plugin's value becomes obvious: users don't need to know where each Skill lives or how each connection fits together, and maintainers can ship the whole set of capabilities by version.

A Plugin also carries more responsibility than a single Skill

Once a Plugin includes an external App or MCP service, maintainers aren't just maintaining prompts anymore. They also have to think about versions, permissions, OAuth, workspace roles, available regions, upgrades, and revocation.

OpenAI's current Plugin Directory also shows the Skills, Apps, and connection requirements a plugin includes. Even if a plugin is marked Verified, that doesn't mean you can skip your own organization's privacy, security, and vendor review.

The test of a good Plugin isn't "it has the most features once installed." It's "this set of capabilities is genuinely worth maintaining long-term as a versioned unit."

5. Internet Access solves for "network egress," not tool capability

This is especially easy to confuse with MCP.

MCP / App determines which external tools Codex can call. Internet Access determines whether a given execution environment can send network requests outward. An MCP may itself be a remote service, but "can connect to this MCP" does not mean the Agent has arbitrary internet access.

The reverse is also true: turning on internet access for a Cloud Agent does not automatically give it dedicated tools for your database, Slack, or internal systems. The network is just a channel, not a business capability.

6. "Codex can't get online" is an incomplete question: first confirm which execution surface you're on

The most valuable point to keep from the original draft is to separate execution environments first. The network boundaries of Cloud Agent, local CLI, and IDE/desktop clients are different, so you can't apply a switch from a Cloud tutorial directly to a local setup.

Codex Cloud: setup and the agent phase are two different things

OpenAI's current documentation states clearly that Codex Cloud blocks internet access during the agent phase by default, while setup scripts can still go online to install dependencies. When needed, you can enable Agent internet access per environment.

This explains a very common situation: dependencies install successfully, but once the Agent actually starts working on the repo, it can't reach a certain website. The network isn't flaky. The two phases simply have different boundaries.

Local CLI / IDE: don't reuse the Cloud answer

Local Codex is also affected by the current machine's proxy, enterprise certificates, sandbox, system network, and project permissions. A page opening in your browser doesn't mean the terminal process uses the same proxy. Likewise, an MCP being reachable doesn't mean ordinary shell requests can go out to anywhere.

When troubleshooting locally, record the current client, working directory, target domain, request method, and the specific error. DNS, TLS, timeouts, and 401/403 each point to a different layer, so don't lift all restrictions just because one domain failed.

7. For Cloud Agent internet access, the most reliable setup is a domain allowlist plus read-only HTTP methods

OpenAI's current advice for Codex Cloud is very direct: open up only the domains and HTTP methods the task needs, and review the Agent's output and work logs.

Cloud Internet Access can be set to Off or On per environment. Once enabled, you can still use a domain allowlist and also restrict the allowed HTTP methods.

If you only need to read documentation, consider limiting the methods to:

GET

HEAD

OPTIONS

This blocks write-type requests such as POST, PUT, PATCH, and DELETE.

For domains, you can start with an empty allowlist, or use Common dependencies as a starting point for installing dependencies and then add the domains you actually need. All (unrestricted) is the most convenient, but it is also the riskiest option.

Why "allow all domains" isn't just a convenience option

The risks the official docs list explicitly include prompt injection from untrusted web pages, leakage of code or Secrets, downloading malicious or vulnerable dependencies, and pulling in content with licensing restrictions.

The most dangerous combination is an Agent that can reach any external site and also has access to high-value Secrets. In that case, a malicious instruction hidden in an issue, README, web page, or dependency description could trick the Agent into sending repository information or credentials to an attacker-controlled address.

The more network access you grant, the more you should treat external content as untrusted input.

8. Four real-world needs: which layer should you pick?

Real needPreferred choiceWhy
Every article should be written to a fixed structure, QA, and product factsSkillWhat's missing is a stable process, not an external service
Codex needs to query a remote database or third-party ticketsMCP / AppNeeds a dedicated data and action interface
Hand the whole team a "writing Skill + external data connection" to installPluginNeeds versioned packaging and distribution
Cloud Agent needs to read an official documentation siteInternet Access + precise allowlistNeeds network egress, but no new business tools
Cloud Agent needs to call an external APIInternet Access + credentials + precise domains/methodsBoth network access and authentication should be minimized
A local task only needs to download dependenciesLocal network / setup-related environmentNo need to open arbitrary network access for every Agent work phase

9. A truly complex task may use Skill, MCP, and Internet Access together

These capabilities aren't mutually exclusive. A high-quality workflow can easily use all of them, as long as each layer handles its own job.

Take a technical article with real data and images as an example. You could divide it up like this:

Skill

Responsible for: topic selection, fact-checking, structure, writing, SEO Review

↓

MCP / App

Responsible for: reading external data or tool results

↓

Internet Access

Responsible for: allowing the necessary network requests

↓

External API

Responsible for: actually performing image generation / queries / remote actions

↓

Plugin (optional)

Responsible for: packaging this whole set of capabilities for team reuse

AI Code With fits best in this structure at the "external model / API capability" layer. For example, your Skill first decides that an image task really does need to be regenerated, and only then calls the corresponding AI Code With image generation capability. The Skill makes the decision, the API does the execution, and the network policy lets only the necessary requests out.

This is more credible than describing "writing workflow, API capability, Plugin, and network permissions" as a single product feature, and it's easier to audit.

10. If a task needs to reach AI Code With, the right approach is precise allowlisting, not opening the whole internet for convenience

Suppose a Cloud task really does need to call AI Code With. Here, AI Code With is just a verified external API service, not a reason to "turn on the internet."

A more reliable approach looks like this:

• First confirm the API domain and endpoint you'll actually use from the current official / product integration docs. Don't guess from old articles or model memory.

• Add only the domains the task truly needs to the allowlist.

• If the request only reads data, keep GET / HEAD / OPTIONS where possible. Open up the required methods only when you really need to call a generation or write-type API.

• Inject the API Key only in the execution steps that need it. Don't put it in the prompt, the repo, or the logs.

• After the task finishes, check Usage Records / the corresponding backend records to confirm the requests actually reached the expected service and Key.

This also makes the value of AI Code With more natural: it provides the model/API entry point, Key management, and call records, but the network allowlist, Codex's Agent permissions, and whether external content can be trusted remain the responsibility of the Codex environment and your workflow.

11. After installing a capability or opening up permissions, don't accept it just because it "seems to work"

Whether it's a Skill, Plugin, MCP, or Internet Access, I recommend that the first time you run only a minimal, read-only, reversible check.

CapabilityHow to verify the first timeHow to roll back after a failure
SkillTrigger one minimal task in a new session and confirm it read the correct rules and fact sourcesDisable / remove the Skill, then run the same task again for comparison
MCP / AppRun a read-only query for one piece of non-sensitive data and confirm the permission scope is correctDisconnect, revoke the token, disable the Server/App
PluginConfirm the plugin loads in a new session, and test only one core capabilityUninstall/disable the plugin and confirm no related App permissions are left behind
Internet AccessAllow one target domain, confirm it is reachable, and confirm unauthorized domains are still blockedTurn off environment networking or tighten the allowlist / HTTP methods

If you can't clearly say, for any step, "what it can read right now, what it can write, where the credentials live, and how to revoke them," it shouldn't go anywhere near a production project.

12. The 8 Most Common Misconceptions

MisconceptionWhy it's wrongA better call
"A Skill is just a simpler Plugin"A Skill is workflow instructions; a Plugin is a unit of packaging and distributionFirst ask whether you need to ship multiple capabilities together
"Installing MCP gives you internet access"MCP is a tool protocol, not an arbitrary network egressAudit network permissions and tool connections separately
"Turning on Internet Access means you can reach company systems"A network path is not account authorization or a business toolYou still need an App/MCP and the matching identity authentication
"A successful Plugin install means the permissions are safe"The underlying App/OAuth/workspace permissions still applyCheck read/write scope and approvals on their own
"Read-only tools carry no risk"Reads can still expose sensitive data or widen the data surfaceLimit read scope to the objects the task actually needs
"Cloud setup has internet, so the agent does too"The setup phase and the agent phase have different network boundariesCheck against the phase that actually runs
"If one domain won't load, just switch to All unrestricted"It widens both prompt injection and Secret exfiltration riskFirst pin down whether the problem is at the DNS/TLS/policy/auth layer
"External web pages are reference material, so they can be trusted"Web pages, issues, and READMEs can all contain prompt injectionTreat all external content as untrusted input

13. Finally, This Decision Order Is All You Need

1. Does the task just lack a fixed process?

→ Skill

2. Does the task have to access external data or perform external actions?

→ MCP / App

3. Does this set of Skills plus external connections need to be distributed to a team long term?

→ Plugin

4. Does the current execution environment genuinely need network egress?

→ Internet Access

5. When it does need network access:

→ Start with exact domains

→ Then the minimum HTTP methods

→ Only then inject the necessary Secrets

6. Before going to production:

→ Run a minimal read-only test

→ Check logs and permissions

→ Confirm the revocation path

The benefit of this order is that you don't introduce unnecessary risk early just to make things "more fully featured." If a Skill can get the task done, stop at the Skill. Only when the task truly steps outside the local boundary should you add external capabilities, one layer at a time.

14. The Truly Professional Way to Extend Is Not Letting Codex Do Everything

As Codex's extension capabilities keep multiplying, the most valuable skill isn't remembering how many plugin names you know. It's being able to tell which layer a task is actually missing.

Skills keep the process stable; MCP / Apps connect to external systems; Plugins bundle capabilities into a maintainable workflow package; Internet Access controls network egress.

Once the boundaries are clear, permission audits, troubleshooting, and describing product capabilities all get much simpler.

The best extension setup isn't "turn everything on." It's giving each task only the capability it needs to get done.

Related Reading

• How to Configure Codex MCP: From Your First Server to OAuth, Permissions, and Safe Rollback

• How to Manage Multiple Projects in Codex: Profiles, API Keys, worktree, and GitHub Actions

• How to Configure a Codex API Key: What the Key, Base URL, Provider, and Model Each Do

• How to Set Up Multiple Tools in Codex Without Crossing Wires

• What Is Codex auth.json: Location, Risks, and Safe Troubleshooting

Sources and Verification Notes

This article merges and rewrites two original drafts, "How to Enable Codex Internet Access Safely: First Figure Out Which Execution Surface You're On" and "How to Choose Between Codex Plugin, Skill, and MCP: Understand the Boundaries Before You Install," and was checked against current 2026 terminology and behavior for Plugins and Codex Cloud Internet Access.

One thing to note: in 2026, OpenAI made Plugins the main entry point for discovering workflow capabilities in ChatGPT and Codex. A Plugin can include Skills, Apps, and App templates. So where earlier drafts used Connector as the main product term, it's better to update that to the current Apps / MCP wording at publication.

OpenAI - Plugins in ChatGPT and Codex:https://help.openai.com/en/articles/20001256-plugins-in-codex

OpenAI - Codex Cloud Agent internet access:https://developers.openai.com/codex/cloud/internet-access

OpenAI - Apps / MCP:https://help.openai.com/en/articles/11487775

OpenAI Developers - MCP and Connectors:https://developers.openai.com/api/docs/guides/tools-connectors-mcp

AI Code With Docs:https://docs.aicodewith.ai/zh/docs