Guide · Claude Code · npx piramyd
How to run Claude Code on Piramyd (flat rate, no per-token billing)
By Mhiro Ash — founder, Piramyd Protocol Inc.
Hook
Claude Code is excellent. Anthropic's direct API billing is not — especially once you start burning tokens on long agent loops, refactors, and multi-file sessions.
I'm Mhiro Ash, founder of Piramyd Protocol Inc. This post is a straight setup guide: how to point Claude Code at Piramyd with npx piramyd, keep your existing CLAUDE.md / hooks / memory, and pay a flat monthly rate instead of per-token invoices.
No invented savings claims. No landing-page theater. Just the path that works.
What you get
On Piramyd you run Claude Code the same way you already do — with a different base URL and a flat plan.
| Plan | Price | Models | RPM |
|---|---|---|---|
| Solo | $30/mo | Solo tier | 5 RPM |
| Growth | $50/mo | Solo + Growth tiers | 5 RPM |
| Scale | $90/mo | Full catalog (all tiers) | 15 RPM |
All plans: unlimited tokens, no per-token billing. Requests are subject to your plan's RPM limit.
Trial: 3 days. $1 today for your trial. Then $30/month unless you cancel before renewal.
claude-piramydsources~/.claude-piramyd/.env(mode0600)- sets
ANTHROPIC_BASE_URL→https://api.piramyd.cloud/v1 execsclaude- Your CLAUDE.md, hooks, and memory stay intact
Onboarding entrypoint: npx piramyd.
Prereqs
- Node.js with npx available (current LTS is fine).
- Claude Code CLI already installed and working (the launcher
execsclaude). - A card for the 3-day trial at piramyd.cloud if you want live API access.
- Comfort editing env files under
~/.claude-piramyd/(permissions should stay0600).
Setup
1. Onboard
$ npx piramydFollow the prompts. This wires you to Piramyd and sets up the local env the launcher will source.
2. Confirm the env file
~/.claude-piramyd/.envPermissions should be 0600 (owner read/write only).
3. Launch through Piramyd
$ claude-piramydThe launcher sources the env, sets ANTHROPIC_BASE_URL to https://api.piramyd.cloud/v1, and execs claude. You're not migrating a project — you're swapping the API endpoint and billing model.
4. Pick a plan
- Solo — $30/mo, Solo models, 5 RPM
- Growth — $49/mo, Solo + Growth models, 5 RPM
- Scale — $90/mo, full catalog, 15 RPM
Verify
- Confirm the process talks to
api.piramyd.cloud. - Claude still feels like Claude — same CLI, project files, hooks.
- RPM: Growth 5 / Scale 15. Extra RPM: $10 each.
ls -l ~/.claude-piramyd/.envshows0600.
Prove economics (optional)
For a local look at what Claude Code has been costing on Anthropic direct, use agent-receipts:
$ npx agent-receiptsIt reads local ~/.claude/projects history. Nothing is uploaded.
One documented historical scan (not a universal claim): that local scan estimated $167.43 on Anthropic direct vs $30 Solo on Piramyd — about 5.6×. One machine, one history — not a guarantee for every workflow.
Same vs changes
Same
- Claude Code CLI
- CLAUDE.md, hooks, memory / project context
- How you write and ship day to day
Changes
- Billing: flat monthly plan instead of per-token invoices
- Endpoint:
ANTHROPIC_BASE_URL→https://api.piramyd.cloud/v1 - Launcher:
claude-piramyd+~/.claude-piramyd/.env - RPM caps: Growth 5 / Scale 15
FAQ
Do I lose CLAUDE.md, hooks, or memory?
No. The launcher execs claude after setting the base URL.
Is there per-token billing on Piramyd?
No. Flat plans: Solo $30, Growth $50, Scale $90 — unlimited tokens within the plan's model list and RPM.
What's the trial?
$1 today for your trial. Then $30/month unless you cancel before renewal.
How many models / what's my RPM?
Each plan unlocks its model tier with unlimited tokens; requests are subject to the plan's RPM limit. Growth: Solo + Growth models at 5 RPM. Scale: full catalog at 15 RPM. Extra RPM is $10 each, one-time.
How do I start?
npx piramyd, then launch with claude-piramyd.
Who wrote this?
Mhiro Ash, founder of Piramyd Protocol Inc. Disclosure up front: I build this.
CTA
- Run
npx piramyd - Launch with
claude-piramyd - Keep Claude Code; drop per-token billing
Live product: piramyd.cloud
Stop rationing your agents.
Let them finish the job.
The agents you already use, every frontier model, and a bill that doesn’t move when they work harder.
Card required. $0 today. $49/month after 24 hours unless you cancel.
For AI agents
Give this link to any agent: it describes the whole API.