lpagent is the command-line interface for LP Agent. Manage LP positions on Solana (Meteora, Orca) and the Robinhood chain (Uniswap v3/v4), discover pools, and generate liquidity transactions from your terminal or through AI agents.
- Works standalone or as a Claude agent skill
- Single binary, no runtime dependencies
- JSON output for piping and automation
- Colored table output for humans
curl -fsSL https://raw.githubusercontent.com/lpagent/cli/main/install.sh | bashThat's it. Now set up your API key and start querying:
lpagent auth set-key
lpagent auth set-default-owner <wallet-address>
lpagent positions open -o table --nativeOther installation methods
Go install:
go install github.com/lpagent/cli/cmd/lpagent@latestBuild from source:
git clone https://github.com/lpagent/cli.git && cd cli
make build
./bin/lpagent --help# Positions
lpagent positions open --owner <addr> # Open positions
lpagent positions open -o table --native # Table view in SOL
lpagent positions open --chain ROBINHOOD --owner <0xaddr> # Open positions on Robinhood
lpagent positions historical --owner <addr> --from 2025-01-01 # Closed positions
lpagent positions overview -o table --native # Portfolio metrics
lpagent positions logs --position <id> # Transaction logs
lpagent positions logs --chain ROBINHOOD --owner <0xaddr> # Logs for a Robinhood wallet
lpagent positions get --position <id> # Position details
lpagent positions revenue <addr> # Revenue data
# Pools
lpagent pools discover --chain SOL --sort-by tvl # Discover pools (Solana)
lpagent pools discover --chain ROBINHOOD --sort-by tvl # Discover Uniswap v3/v4 pools on Robinhood
lpagent pools info <poolId> # Pool details
lpagent pools positions <poolId> --status Open # Positions in a pool
lpagent pools onchain-stats <poolId> # TVL, volume, fees
lpagent pools top-lpers <poolId> # Top LPs
# Zap-In (add liquidity) - Solana only
lpagent pools add-tx <poolId> --owner <addr> --strategy Spot --input-sol 1
lpagent pools landing-add-tx --file signed-tx.json
# Zap-Out (remove liquidity) - Solana only
lpagent tx zap-out-estimates --position-id <id> --bps 10000 # real payout per output option, after swap + fee
lpagent tx decrease-tx --position-id <id> --bps 10000 --owner <addr> --slippage-bps 500
lpagent tx landing-decrease-tx --file signed-tx.json
# Claim fees (position stays open) - Solana only
lpagent tx claim-fee-tx --position-id <id> --owner <addr> # add --swap-to-sol to get the fees in SOL
lpagent tx landing-claim-fee-tx --file signed-tx.json
# Token
lpagent token balance --owner <addr>
lpagent token balance --chain ROBINHOOD --owner <0xaddr>
# Raw API access
lpagent api get /lp-positions/opening --query "owner=<addr>"
lpagent api post /position/zap-out-estimates --data '{"position_id":"...","bps":5000}'| Chain | --chain |
Protocols | Native token |
|---|---|---|---|
| Solana | SOL (default) |
Meteora DLMM, Meteora DAMM v2, Orca | SOL |
| Robinhood | ROBINHOOD |
Uniswap v3, Uniswap v4 | ETH |
Read commands take --chain SOL (default) or --chain ROBINHOOD: positions open, historical,
overview, logs and revenue, token balance, pools discover and pools positions.
positions get, pools onchain-stats and pools top-lpers read the chain from the id you pass.
pools info and every command that builds or sends a transaction (add-tx, zap-out-estimates,
decrease-tx, claim-fee-tx and their landing- commands) are Solana only.
See Chain Support.
All commands support --output / -o: json (default), table, quiet.
Use --native on positions open and positions overview to show values in the native token (SOL on Solana, ETH on Robinhood) instead of USD.
Config stored at ~/.lpagent/config.json. Override with env vars or CLI flags:
| Variable | Flag | Description |
|---|---|---|
LPAGENT_API_KEY |
--api-key |
API key |
LPAGENT_API_URL |
Base URL | |
LPAGENT_DEFAULT_OWNER |
--owner |
Default wallet address |
Priority: CLI flags > env vars > config file.
lpagent uninstallThis removes the binary and the ~/.lpagent config directory. Pass -y to skip the confirmation prompt.
make build # Build to bin/lpagent
make test # Run tests
make check # fmt + vet + testAutomated via GitHub Actions + GoReleaser on version tags:
git tag v0.1.0 && git push origin v0.1.0MIT