Integration · no API key

The anyshare agent skill

An agent skill to publish a website or any file: one SKILL.md that tells Claude Code, Codex and other agents when sharing helps, how to do it, and what never to upload.

Teaches any skills-aware agent when and how to share. Uses the CLI, falls back to curl.

npx skills add anyshare/anyshare --skill anyshare

What the skill teaches

An Agent Skill is a folder with a SKILL.md that an agent loads when it’s relevant. The anyshare skill covers four things. When to share: the user asks to share, host, preview or send a link, or the agent just produced an HTML report, prototype, chart or document worth opening in a browser. How: the anyshare MCP tools if they’re connected, otherwise the CLI, otherwise curl.

What to say: print the URL on its own line, say what it shows, and, for a link published without an account, show the claim link and its 1 hour deadline right next to it. What never to upload: .env files, keys, credentials, node_modules, or unbuilt source when the built site is what’s wanted. It also explains keeping links with a free account (npx -y @anyshare/cli login), updating a link (same URL), deleting one, and what each error means.

Skill or MCP server? Use both if you can. The MCP server gives the agent a reliable tool; the skill gives it judgment. On its own, the skill still works anywhere the agent has a shell.

Reference

Install options

Pick the one that matches your agent. They all install the same skills/anyshare folder.

skills CLI

For any skills-aware agent.

npx skills add anyshare/anyshare --skill anyshare

Claude Code plugin

Run inside Claude Code. Installs the skill and the MCP server together.

/plugin marketplace add anyshare/anyshare
/plugin install anyshare@anyshare

Codex plugin

Installs the skill and the MCP server together.

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

By hand

Claude Code reads ~/.claude/skills/. For Codex use ~/.agents/skills/ (all projects) or .agents/skills/ (one project).

git clone https://github.com/anyshare/anyshare
cp -R anyshare/skills/anyshare ~/.claude/skills/

curl fallback

From the skill’s folder, on machines without Node.js. Prints the JSON response, then the URL, and the claim link on stderr.

sh scripts/share.sh ./dist [slug] [title]

When it’s shared

What a skill-led share looks like

The agent builds first if needed, publishes the right folder, and replies with the link, what it shows, when it expires and how to keep it.

  • Build output, not source
  • The link on its own line
  • Claim link and deadline up front
  • Secrets never uploaded

How it works

Three steps

  1. Step 1:

    Install it

    Use the plugin for Claude Code or Codex, npx skills add for other skills-aware agents, or copy the folder by hand.

  2. Step 2:

    Work as usual

    The skill loads when it matters: “share this”, “send me a link”, or right after the agent writes an HTML report you’ll want to open.

  3. Step 3:

    Get links that behave

    The agent publishes, prints the URL with its expiry and claim link, and keeps what it needs to update the same link later.

The details

Why a skill, not just a tool

  • When to share, not just how

    Tools tell an agent what it can do. The skill tells it when sharing helps, so you get an offer of a link right after a report is written.

  • Safe by default

    It tells the agent to publish without asking only when you asked for a link, because links are public, and never to upload secrets, credentials or .npmrc/.netrc files.

  • Falls back gracefully

    MCP tools first, then the CLI, then curl. On machines without Node.js, scripts/share.sh zips a folder without .git, node_modules, .env* and key files and uploads it.

  • Plain files you can read

    SKILL.md and one shell script. Nothing runs in the background, and you can read or edit your copy.

  • Ships inside the plugins

    The Claude Code and Codex plugins install the same skill together with the MCP server.

FAQ

Questions, answered.

Skill or MCP server: do I need both?
Not strictly. The skill alone works wherever the agent has a shell, because it falls back to the CLI and curl. Adding the MCP server gives the agent a dedicated tool, which is more reliable, especially for folders.
Will the skill make my agent publish things on its own?
No. It tells the agent to offer a link when it makes something worth opening, and to publish without asking only when you asked for a link. Links are public, so that rule matters.
Which agents can use it?
Any agent that loads AgentSkills-style SKILL.md folders: Claude Code, Codex, OpenClaw and others. Agents that don’t load skills can still use the CLI or the MCP server directly.
What does the agent say after it shares something?
The URL on its own line, what it shows and, without an account, the claim link with its deadline, for example: “Here’s the report: https://sunny-otter-4821.anyshare.site. It expires in 1 hour unless you keep it; keep it free for 30 days here: https://anyshare.ai/claim/sunny-otter-4821#token=…”
Can I read or change the skill?
Yes. It’s a Markdown file and one shell script. Read it before installing, and edit your local copy if you want different rules, such as always using a custom slug.

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.