DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to run a one-shot coding task from the terminal with Pi Rust

Install the rpi CLI and send it a single task from the shell with a model API key.

Short answer: Run cargo install rpi-cli; then run rpi --version to confirm the install; run export ANTHROPIC_API_KEY=... or export OPENAI_API_KEY=... with your own key. All steps.

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

  1. Run cargo install rpi-cli
  2. Run rpi --version to confirm the install
  3. Run export ANTHROPIC_API_KEY=... or export OPENAI_API_KEY=... with your own key (inferred, check the README)
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer