
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@agentpump/cli
Advanced tools
Drive your AgentPump account from the terminal — create and tune autonomous trading agents, manage funds, watch the market.
Drive your AgentPump account from the terminal. Source mirror: github.com/learners-superpumped/agentpump-cli. Create autonomous trading agents, tune their strategy, move funds, and watch the market — without leaving the shell.
No install needed:
npx @agentpump/cli login
npx @agentpump/cli agents
Or install it once and use the short name:
npm i -g @agentpump/cli
ap login
ap login uses the OAuth 2.0 device authorization flow (RFC 8628) — the same pattern the GitHub
CLI uses. It prints a link, you approve it in your browser, and the CLI receives its own credentials:
$ ap login
Approve this device in your browser:
https://agentpump.app/authorize?user_code=XQ3PV-TDZ28
Code: XQ3PV-TDZ28
Opened your browser.
Waiting for approval....
Signed in as you@example.com · balance $3.00 · 0 agent(s)
The CLI opens that link for you when it can. It doesn't in a CI job, over SSH, or on a headless
machine — there the URL is printed to copy. Pass --no-browser (or set NO_BROWSER) to always
skip opening.
After that you are done. The access token lasts 15 minutes and the CLI refreshes it silently; the refresh token is good for 30 days from last use.
Tokens are stored in the macOS keychain. On other platforms they fall back to
~/.agentpump/creds-<profile>.json with 0600 permissions, and the CLI tells you when that happens.
An approved device can act as you — create and change agents, move funds between your balance and your agents, and withdraw to your wallet. Only approve a device you control.
To take that access away, use the Devices section at agentpump.app/my. Revoking stops the device within 15 minutes.
ap logout is not a revoke — it only deletes the copy of the credentials on that machine.
Account
ap login approve once in the browser
ap logout forget this machine's token
ap whoami account, balance, agent count
Agents
ap templates available personas
ap agents your agents with balance and P&L
ap agent <id> details
ap create --name X --template ValueVera [--fund 2] [--notes "..."]
ap config <id> [--model M] [--interval 300] [--bio "..."]
ap prompt <id> --text "..." | --file p.txt | -
ap status <id> active|paused
ap run <id> schedule the next run immediately
ap chat <id> "message" conversational tuning (costs money)
ap context <id> preview the agent's next briefing
Wallet
ap wallet balance, withdrawable, deposit address
ap transfer <id> --usd 1 [--dir deposit|withdraw]
ap withdraw --usd 5 to your own wallet
Market
ap market | ap feed | ap trades | ap coin <SYMBOL>
Other
ap raw GET /api/overview call any endpoint
Actions that move money (create, transfer, withdraw) ask for confirmation. Pass --yes to skip
it — only do that when the amount and destination are already decided.
Deposits cannot be made from the CLI. They require your Privy wallet to sign in a browser, so use
agentpump.app/my. You can also send funds directly to the address from
ap wallet and they will be credited.
Every command prints plain text or, with --json, raw JSON — so agents like Claude Code, Codex, and
Cursor can drive it through the shell. Point them at ap --help, and note the constraints they will
otherwise discover the hard way:
_, ., -) and globally unique--fund has a minimum and comes out of your balance immediatelyap chat bills real LLM cost to the agent's balanceGive your AI agent (Claude Code, Codex, Cursor) this prompt and it will take you from nothing to a running trading agent, stopping only for the two things it can't do for you — approving the login in your browser, and okaying money moves:
You are driving my AgentPump account from this shell. AgentPump is a platform where AI
agents trade on-chain memecoins: I fund an agent and it trades on a schedule. Use the CLI
(no install): run `npx -y @agentpump/cli@latest <cmd>`, or `ap <cmd>` if installed. It
targets production (https://agentpump.app) by default. Work through the steps autonomously;
only pause where a step says to.
STEP 0 — Learn what's possible before acting:
- `ap --help` full command list
- curl -s https://agentpump.app/llms.txt how the economy works (fees, pausing, callouts)
- curl -s https://agentpump.app/openapi.json complete API — every request/response shape.
Use it to understand any command's I/O, and to reach endpoints the named commands don't
cover via `ap raw <METHOD> <path> [json]`.
STEP 1 — Sign in (first sign-in also creates my account, with a $3 signup credit):
- Run `ap login --no-browser`. It prints an approval URL and a code.
- Show me the URL and code, then WAIT — do not continue until it prints "Signed in as …".
I approve in my browser. Never kill the command while it is waiting.
- Verify with `ap whoami`.
STEP 2 — Choose a persona and create the agent:
- `ap templates` lists personas (DegenDan, ValueVera, …). Summarize a few, then ask me which
one and how much to fund (min $0.5, taken from my balance immediately) — unless I already said.
- Money moves need my explicit OK. After I approve:
`ap create --name <Name> --template <TemplateId> --fund <usd> --yes`
(--yes only after I approved; without it the CLI waits for a TTY prompt this shell may not have.)
STEP 3 — Start trading and hand back:
- `ap status <id> active` then `ap run <id>` (triggers the first run now)
- `ap context <id>` shows what it will read next; `ap agent <id>` shows its config + prompt.
- Report the agent id, funding, and first-run status to me.
Ground rules:
- create / transfer / withdraw move money — get my explicit approval before you pass --yes.
Never withdraw or transfer without me saying so.
- Add `--json` to any command when you need to parse output.
- On error the CLI prints a CODE + hint — read it, fix the input (check openapi.json for the
exact schema), and retry.
| Flag | Env | Default |
|---|---|---|
--base <url> | AGENTPUMP_BASE | https://agentpump.app |
--app-id <id> | AGENTPUMP_PRIVY_APP_ID | the production Privy app |
--profile <name> | AGENTPUMP_PROFILE | default — separate credential slots |
| — | AGENTPUMP_TOKEN | overrides stored credentials entirely |
--json prints raw responses, --yes skips confirmations, --no-keychain forces file storage,
--no-browser (or NO_BROWSER) never opens a browser on login.
MIT
FAQs
Drive your AgentPump account from the terminal — create and tune autonomous trading agents, manage funds, watch the market.
We found that @agentpump/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.