LP Agent CLI
lpagent is the command-line interface for LP Agent.
It lets users and AI agents discover pools, inspect positions, and execute zap-in/zap-out transaction workflows from terminal scripts.
- Works as a standalone CLI
- Works well in coding-agent environments
- JSON output for automation, table output for humans
CLI Repository
Source code, releases, and issue tracking for the LP Agent CLI.
Install
Quick install script
Alternative install methods
Initial setup
Core command groups
Positions
Pools
Zap-In / Zap-Out transaction flow
Token and raw API access
Output modes
All commands support:json(default)tablequiet
Configuration
Config file path:~/.lpagent/config.json
| Variable | Flag | Description |
|---|---|---|
LPAGENT_API_KEY | --api-key | API key |
LPAGENT_API_URL | - | Base API URL |
LPAGENT_DEFAULT_OWNER | --owner | Default wallet address |
- CLI flags
- Environment variables
- Config file
AI Agent usage pattern
When integratinglpagent into AI workflows:
- prefer
-o jsonfor machine parsing - keep wallet signing in trusted runtime boundaries
- run a dry read step (
positions open,pools info) before execution commands - use generated transaction + landing command pairs for reliability