Skip to main content

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

Then verify access:

Core command groups

Positions

Pools

Zap-In / Zap-Out transaction flow

Token and raw API access

Output modes

All commands support:
  • json (default)
  • table
  • quiet
Use:

Configuration

Config file path:
  • ~/.lpagent/config.json
Override sources: Priority order:
  1. CLI flags
  2. Environment variables
  3. Config file

AI Agent usage pattern

When integrating lpagent into AI workflows:
  1. prefer -o json for machine parsing
  2. keep wallet signing in trusted runtime boundaries
  3. run a dry read step (positions open, pools info) before execution commands
  4. use generated transaction + landing command pairs for reliability