@allisonorufa/baseberg-cli
v3.1.0
Published
Baseberg AI Terminal — The Autonomous Base OS
Maintainers
Readme
Baseberg Agent CLI
The official Baseberg CLI for autonomous AI agents. Give your bots (Open-Claw, Eliza, LangChain, etc.) the ability to interact with the Base ecosystem natively.
Installation
# Install globally from NPM
npm install -g @allisonorufa/baseberg-cli
# Or run directly via NPX
npx @allisonorufa/baseberg-cli marketConfiguration
For wallet-based actions (swaps, balance checks), set your private key in your environment or a .env file:
AGENT_PRIVATE_KEY=0x...Commands for Agents
You can expose these CLI commands as "Tools" in your agent's framework (like Langchain or AutoGPT).
1. Market Pulse
Gets the current ETH price, Base TVL, and global market state. ```bash tsx index.ts market ```
2. Trending Tokens
Gets the top 5 highest-volume tokens on Base right now. ```bash tsx index.ts trending ```
3. Token Lookup
Fetch real-time Dexscreener data for any Base token by symbol or address. ```bash tsx index.ts token DEGEN
or
tsx index.ts token 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed ```
4. Wallet Check
Checks the ETH balance of the autonomous agent's connected wallet. ```bash tsx index.ts wallet ```
Building Custom Actions
The CLI is built with `viem`. You can easily add more actions (like executing 0x swaps or transferring tokens) by extending the `index.ts` file.
