Send large files from Claude Code, Codex or Cursor
Let a coding agent package and send a large file or folder with GB Files. The agent runs the upload; you approve one fixed price on Stripe Checkout.
Coding agents like Claude Code, Codex and Cursor's agent can run shell commands and call HTTP APIs, which is all GB Files needs. The agent declares the files, hands you a checkout link, uploads with resumable SHA-256-verified chunks, and gives you a share link.
Tell your agent
Send ./build/release with GB Files and email the link to qa@example.com. Use
npx gbfiles sendand read https://gbfiles.com/skill.md first. Tell me the price before paying.
Under the hood the agent runs:
npx gbfiles send ./build/release --to qa@example.com --json --no-open
The skill file covers the CLI, the raw REST API for agents that can't run Node.js, and the rules for retrying safely.
What the agent does
- Lists the files and total size, and tells you the price (up to 100 GB $1.99, up to 500 GB $4.99, up to 1 TB $9.99, up to 5 TB $34.99.).
- Runs
npx gbfiles send, which creates the transfer with an idempotency key, then gives you thecheckoutUrl. - You pay once on Stripe Checkout. The agent never sees card details.
- The agent uploads the chunks, four at a time, each with a SHA-256 checksum that storage verifies.
- It finalizes and gives you the share link. The recipient gets an email if you asked for one.
Why it's safe to let an agent do this
- Fixed price, agreed up front. It depends only on size, and nothing renews.
- No duplicate charges. Retrying the create call with the same idempotency key returns the same transfer.
- No restarts. If the agent's session dies mid-upload,
npx gbfiles resume(or the status endpoint) continues with only the missing chunks. - No credentials to leak. There are no API keys. Each transfer has its own upload token, useless once the transfer expires.
FAQ
Can the agent pay by itself?
No. A person completes Stripe Checkout once per transfer. Everything after that runs unattended.
Is there an MCP server?
Not yet. The gbfiles CLI and the REST API work in any agent that can run commands or make HTTP requests. Full reference: REST API.