For Codex

Hosting for Codex

Codex hosting in one config entry: add the anyshare MCP server or plugin, and Codex publishes the files it makes and replies with a URL anyone can open.

Codex (command)

More ways to connect

Same as the config.toml entry, in one command.

codex mcp add anyshare -- npx -y @anyshare/cli mcp

Where Codex output goes

Codex is good at producing things people want to read: a migration report, a benchmark write-up as Markdown, a CSV of results, a built front end. It doesn’t come with a way to put a file at a public URL, so those results usually stay in the repo or get pasted into chat by hand. anyshare adds that missing step.

Codex often runs shell commands in a sandbox, and depending on your settings that sandbox may block network access. Uploading needs the network, so either approve the upload when Codex asks, or use one of the MCP options, which means Codex doesn’t have to push the upload through its shell at all.

Setup

Connect Codex

The plugin bundles the skill and the MCP server. If you prefer config files, the TOML entry does the same as codex mcp add. The remote server needs no Node.js.

Pick one

Installs the anyshare skill and MCP server together.

codex plugin marketplace add anyshare/anyshare
codex plugin add anyshare@anyshare

What exists for Codex

Codex gets the full set: a Codex plugin (the skill plus the MCP server), the local and remote MCP servers, and the Agent Skill on its own. Nothing needs an account or an API key.

Then just ask

  • “build the site and share dist/ with anyshare”
  • “write the findings up as report.md and share it”
  • “export the benchmark results as results.csv and send me a link”
  • “update the anyshare link with the latest build”

When it’s shared

What Codex tends to publish

Reports and docs Codex writes in Markdown get a reading page with a table of contents, CSV results open as a sortable table, and HTML runs as a live page.

  • Markdown with a table of contents
  • CSV as a sortable, filterable table
  • HTML served as a live page
  • Build folders as websites

How it works

Three steps to a Codex link

  1. Step 1:

    Add anyshare

    Run codex mcp add anyshare -- npx -y @anyshare/cli mcp, or add the same server to ~/.codex/config.toml. Check it with codex mcp list.

  2. Step 2:

    Ask Codex

    “Build the site and share dist/ with anyshare.” Codex calls the publish tool with the folder path, and the files go straight from disk to anyshare.

  3. Step 3:

    Get the link

    Codex prints the URL when it’s done. After the next change, ask it to update the link: the address stays the same.

The details

How it fits Codex

  • Plugin or plain config

    Install the plugin with two commands, or add one [mcp_servers.anyshare] table to ~/.codex/config.toml. Both give Codex the same tools.

  • Reads from disk

    The local server takes a path, so Codex can share a whole folder in one tool call and the bytes never pass through the model.

  • Remote for locked-down machines

    No Node.js? Point Codex at the remote server with a url entry. For files on disk it returns a ready-to-run upload command instead of asking the model to read the bytes.

  • No tokens in the transcript

    The local server keeps each link’s update token in ~/.config/anyshare/sites.json, so “update the link” works without the token ever appearing in the conversation.

  • Secrets are skipped

    .env files, keys, .npmrc and folders like .ssh are never uploaded, and naming one directly is refused.

  • Free limits

    50 MB and 1,000 files per upload, and no account or API key to publish. Without an account a link lasts 1 hour; keep it with a free account and it lasts 30 days from the upload.

FAQ

Questions, answered.

What does Codex reply with after publishing?
The link, usually on its own line, like https://sunny-otter-4821.anyshare.site. The skill also tells Codex to show the claim link and its 1 hour deadline for links published without an account, so nobody is surprised later.
Codex says it can’t reach the network. What now?
Uploading needs network access. If your sandbox settings block it for shell commands, approve the upload when Codex asks, or switch to one of the MCP options so Codex doesn’t have to run the CLI through its shell.
Do I need both the plugin and the MCP server?
No. The plugin already includes the MCP server and the skill. Install the plugin, or add the MCP server by hand, not both.
Can Codex update a link it published yesterday?
Yes, on the same machine: the local server and the CLI read the token from ~/.config/anyshare/sites.json. From another machine, pass the token with --token or the ANYSHARE_TOKEN environment variable.
Will Codex upload my .env file by accident?
Not through the CLI or the local MCP server: both skip secret files when sharing a folder and refuse if one is named directly. If Codex falls back to curl, the skill tells it to check the folder first.

Give your agent a URL for any file.

One step to connect, no account or API key. It hands you back a link anyone can open, and a claim link to keep it.