{"_id":"@apihubio/cli","_rev":"11-8df585b488d9fc2eec93627eed499090","name":"@apihubio/cli","dist-tags":{"latest":"0.3.7"},"versions":{"0.1.1":{"name":"@apihubio/cli","version":"0.1.1","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.1.1","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"e95fdc79423a8845acf191d4b875ac4b76b9b594","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.1.1.tgz","fileCount":3,"integrity":"sha512-46yeN7X/HFhIPf3STDOm2A1Hkcu3YdznMDcpv7Pu7tBNy/SMYXMfHH9dITqiGDRsEgOBCv5AHPuCOY34qEry5w==","signatures":[{"sig":"MEQCIBMdwwLqvQUwtxRhCE83AUNGw10K9nQl7VL3rbZvJGWUAiAVCvypEaWcvHwWavuAnnrW8/6obZU5Hx2i4xIoL3Z3DQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16445},"type":"module","engines":{"node":">=20"},"gitHead":"3271c1d7ad79156d01b69f48223c6df78a6868c8","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI — call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.1_1776981087869_0.42178358411636574","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@apihubio/cli","version":"0.2.0","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.2.0","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"02c74146e631bb59aa543517a5c579f14ea848b8","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.2.0.tgz","fileCount":3,"integrity":"sha512-Ckwr3CF8uVl9hp12SeZIO28E8+3YncpQejJvgoRDxtf5EAchMFRofut+PV9EcIT2lmvn23NA7vL/2AP29UsINw==","signatures":[{"sig":"MEUCIQDJQCf8yljZybexhwKIFonSU57KkvOVyz9WSDNtykMoZQIgPF14EWU0zOH48xcerXS7pfXBu0rcjnCq35UuA6TV+6I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18850},"type":"module","engines":{"node":">=20"},"gitHead":"286967a1e4bec15bd736a476b370962efc4cd3cc","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI — call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.2.0_1776981632620_0.5870516908075658","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@apihubio/cli","version":"0.3.0","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.0","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"59d7ef2767d8d99c14605ec1e33c2927870dcf5b","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.0.tgz","fileCount":3,"integrity":"sha512-F2pxdHRZy12T/dwHi8MPhEmVijW7bXTX7shntOCZnGiNs+jbcmNhkMyZnN7aNY+Y8tRz0vwEH4OzMzUS0NUhjA==","signatures":[{"sig":"MEUCIQCdTRWTE6fqUlUEaee0xY/W4TeTPOW6LuyhdwNZiYAZowIgZ7/+pto7ZAlJp8em1pjIwJXYhYNAuXfrZrjpcTk8U70=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44327},"type":"module","engines":{"node":">=20"},"gitHead":"69e59143007cb870079bba757b2f239998f1422e","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI — call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.0_1776985820744_0.6044511804879014","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@apihubio/cli","version":"0.3.1","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.1","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"18bdec7d411534d1e2aa378334a78a21484a30d8","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.1.tgz","fileCount":3,"integrity":"sha512-WxIK0IZff++ABW5jLlnHqZr3cGUjJ2LxP67R81YcCDBQgxZF7s8HjYraYJKK/3L0n+THZJy0klLq4u7hr16ZVg==","signatures":[{"sig":"MEUCIGohwQdH5X//7Xr7rMVIX2FIltf6oBh3gnpSaRCPcoauAiEA+apdS/Inr+lXlfJzJLDqR668xdKhiwslBrO9C5aG/7w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44337},"type":"module","engines":{"node":">=20"},"gitHead":"e2c9cc849c4c1c621509472a0cb3333468a1a7ca","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI — call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.1_1776986850478_0.0733884422379465","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@apihubio/cli","version":"0.3.3","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.3","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"8ea4c182673c982b36f6cbe712b6c04ca12f2889","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.3.tgz","fileCount":3,"integrity":"sha512-tbGR+AtZrx2OPpardDjROWLqTOIlSHc6bfCBqb7IIKh2vDMZH4r1I/FhRBZFSSQ3VD163WT+iyu8cR53Kw+1Hw==","signatures":[{"sig":"MEUCIQDDySNRrc/IJvRdTts05LrWSnaSukX0bxnSPqOL8UwvXwIgaUepdtV1ownnp0taY+H0IVqpATXQF7Q0rvjsvAQmtWQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46470},"type":"module","engines":{"node":">=20"},"gitHead":"979371d085c5f42be775cf04c7daf7809aa9bae1","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.3_1777152006052_0.45776903422935167","host":"s3://npm-registry-packages-npm-production"}},"0.3.4":{"name":"@apihubio/cli","version":"0.3.4","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.4","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"8f9ce8ac794ba87de334fbcf5f791270e7c23b47","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.4.tgz","fileCount":3,"integrity":"sha512-KyH6ZDavubBM1URb/lyY6Jm5/vrE4t5Tm/0ePXHZfbTQ9OB8vceHNIv3h+KKPm2UUKFDHayWeTskjgedOTXi1A==","signatures":[{"sig":"MEUCIQCYf31iFjQL6nvikoormw1B0y7kYkAq7eeanD06tS6HIAIgBO5Pn6Ogw5cvjo4ZitG79xZ5RdOYwyhkYX2G40rRHiM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46472},"type":"module","engines":{"node":">=20"},"gitHead":"979371d085c5f42be775cf04c7daf7809aa9bae1","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.4_1777153178273_0.6396905306539733","host":"s3://npm-registry-packages-npm-production"}},"0.3.5":{"name":"@apihubio/cli","version":"0.3.5","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.5","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"0459fd961a168208ca5e4e01222d4dc27ab9b246","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.5.tgz","fileCount":3,"integrity":"sha512-e6sW9P9zcim86xYIi7A6hdNAVZ1kAUcWHfQiT2aGsHZIEfPERUGmb82j1ifPuL5rdkGB5OBGo1ErFbN3mQeSCw==","signatures":[{"sig":"MEYCIQD/CdABiltPBq3FuYyNcmuhIB6Or7E1B1A68Z6S0t2zuwIhAIisE2a19IVHs4hVQ1H0HwOnAUvbR8Hb7CZx0rJiotBZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":46723},"type":"module","engines":{"node":">=20"},"gitHead":"979371d085c5f42be775cf04c7daf7809aa9bae1","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.5_1777154739085_0.991702873761553","host":"s3://npm-registry-packages-npm-production"}},"0.3.6":{"name":"@apihubio/cli","version":"0.3.6","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"license":"MIT","_id":"@apihubio/cli@0.3.6","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"bin":{"apihub":"dist/index.js"},"dist":{"shasum":"0030443545a6ec81f1d0c0eece9e267173ece488","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.6.tgz","fileCount":3,"integrity":"sha512-adJRCAqYFk4ZoAu30mbSxGKSlNEP6WcJYwiXOp/fvKGP6aO0zwo3A/zM3x0bmKy9TBH4IZZrekmw/WPvPyqIsg==","signatures":[{"sig":"MEQCIEkXrsQITO9pb1oeYmpcaIKesR/KtYZvkaBgETdeSazqAiBho8Rt7YwZXLFcKit77VLQbZg03n4eqVWYBa0vKLUfUg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47435},"type":"module","engines":{"node":">=20"},"gitHead":"979371d085c5f42be775cf04c7daf7809aa9bae1","scripts":{"dev":"tsx src/index.ts","build":"tsup","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"_npmVersion":"11.6.1","description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","directories":{},"_nodeVersion":"22.14.0","dependencies":{"open":"^10.1.0","kleur":"^4.1.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.5.1","typescript":"^5.9.3","@types/node":"^20.19.33"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.6_1777155694867_0.7192991540216407","host":"s3://npm-registry-packages-npm-production"}},"0.3.7":{"name":"@apihubio/cli","version":"0.3.7","description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"homepage":"https://apihub.io","bugs":{"url":"https://apihub.io/contact"},"license":"MIT","type":"module","bin":{"apihub":"dist/index.js"},"scripts":{"build":"tsup","dev":"tsx src/index.ts","typecheck":"tsc --noEmit","prepublishOnly":"pnpm build"},"dependencies":{"kleur":"^4.1.5","open":"^10.1.0"},"devDependencies":{"@types/node":"^20.19.33","tsup":"^8.5.1","tsx":"^4.21.0","typescript":"^5.9.3"},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"gitHead":"979371d085c5f42be775cf04c7daf7809aa9bae1","_id":"@apihubio/cli@0.3.7","_nodeVersion":"22.14.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-7bm29IxGRf5xCW8ZVMBjpGMTRoByNAcEd7Z/8+1y1kcuZlQxn3cdpkvoooo2Bv1OhFKLr5SXyIV41Svb584pwA==","shasum":"e4c909c17018397d1037a3475fb46045de80f89c","tarball":"https://registry.npmjs.org/@apihubio/cli/-/cli-0.3.7.tgz","fileCount":3,"unpackedSize":47463,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8sGU/Hwgo4USOhyrscj861mj2QusHeI66cHHPxvhHwgIhAOr0lNzlX9M/9WMXGkDMNvTGOw5rxrMlcUFVdOcKMdRX"}]},"_npmUser":{"name":"apihub-io","email":"apausak@proton.me"},"directories":{},"maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.3.7_1777156018261_0.8013441280096429"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-23T21:45:46.309Z","modified":"2026-04-25T22:26:58.557Z","0.1.0":"2026-04-23T21:45:46.607Z","0.1.1":"2026-04-23T21:51:28.028Z","0.2.0":"2026-04-23T22:00:32.753Z","0.3.0":"2026-04-23T23:10:20.882Z","0.3.1":"2026-04-23T23:27:30.631Z","0.3.3":"2026-04-25T21:20:06.200Z","0.3.4":"2026-04-25T21:39:38.419Z","0.3.5":"2026-04-25T22:05:39.261Z","0.3.6":"2026-04-25T22:21:35.010Z","0.3.7":"2026-04-25T22:26:58.431Z"},"bugs":{"url":"https://apihub.io/contact"},"license":"MIT","homepage":"https://apihub.io","keywords":["apihub","x402","mcp","ai-agents","payments","usdc"],"description":"APIHub CLI - call x402 APIs with prepaid credits, no wallet required","maintainers":[{"name":"apihub-io","email":"apausak@proton.me"}],"readme":"# @apihubio/cli\n\nCall x402 APIs with prepaid credits. No wallet required.\n\n## Install\n\n```bash\nnpm install -g @apihubio/cli\n# or use on-demand\nnpx @apihubio/cli <command>\n```\n\n## Quick start\n\n```bash\n# 1. Sign up and save your API key\napihub register\n\n# 2. Top up credits ($5 minimum)\napihub topup 10\n\n# 3. Call a native APIHub service (payment drawn from credits)\napihub call https://proxy.apihub.io/global-weather/current?city=NYC\n\n# 4. Wire up Claude / Cursor / Codex to use APIHub via MCP\napihub install\n```\n\nBrowse the marketplace at [apihub.io/marketplace](https://apihub.io/marketplace) to discover native services and external x402 APIs you can call the same way.\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| `register` | Open the browser to sign up, save API key to `~/.apihub/config.json` |\n| `balance` | Show prepaid credit balance |\n| `topup <usd>` | Open checkout to buy credits (minimum $5) |\n| `search [query]` | Search the marketplace for x402 services |\n| `call <url>` | Make a paid call through APIHub's proxy; credits cover x402 |\n| `add <url>` | Register an x402 service URL to your toolset |\n| `install [target]` | Wire up MCP config for `claude`, `cursor`, `codex`, `claude-code` |\n| `init [dir]` | Scaffold a starter project: `claude`, `openai`, `langchain`, `python`, `node-ts` |\n\nAll commands support `-h / --help` for detailed usage.\n\n### `call` options\n\n```bash\napihub call <url> [-X POST] [-H 'Header: Value']... [-d '{\"body\":\"...\"}'] [--json]\n```\n\n### Environment\n\n| Variable | Description |\n|---|---|\n| `APIHUB_API_KEY` | Override stored API key (useful for CI) |\n| `APIHUB_API_URL` | Override API base (default `https://api.apihub.io`) |\n| `APIHUB_PROXY_URL` | Override proxy base (default `https://proxy.apihub.io`) |\n\n## Why not use a wallet directly?\n\nYou can! Every x402 service is callable via `@x402/fetch` with your own wallet. APIHub is the credits-based alternative:\n\n- **No wallet, no gas** - deposit USDC once, spend it across any x402 API\n- **Gasless calls** - credits draw down server-side, no per-call signing\n- **Unified billing** - one dashboard, one invoice, clear spend history\n- **Works with AI tools** - MCP server integrates with Claude, Cursor, Codex\n\n## License\n\nMIT\n","readmeFilename":"README.md"}