Credentials. The agent needs a model API key in your shell environment, so keep the key out of shared scripts and logs.
Who it is forA developer who wants a coding agent in the terminal to answer questions about a project or make a small change.
The problemSetting up an agent usually means wiring up SDKs or web tools before any work gets done.
The outcomeA one-line command returns the agent's answer for the task in the terminal.
What you need first
- Rust 1.78 or later, for installing from crates.io
- An ANTHROPIC_API_KEY or OPENAI_API_KEY, or a ~/.rpi/agent/models.json file, for live model calls
- Git, to clone the repository for the offline examples
Steps
- Run
cargo install rpi-cli - Run
rpi --versionto confirm the install - Run
export ANTHROPIC_API_KEY=...orexport OPENAI_API_KEY=...with your own key (inferred, check the README) - Run
rpi -p "summarize the README"from the project directory
Prompt for your agent
Install rpi-cli from the bigfish1913/pi-rust repository using cargo, then run `rpi -p "<task>"` in <project-directory> with the API key set. Expected output: a text answer to the task. Verify that `rpi --version` prints a version before running the task.
Caveat. The README's interactive TUI and sessions need a configured provider, so the first run will not work without a key or a models.json file.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for bigfish1913/pi-rust and "Run a one-shot coding task from the terminal"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer