IRERI CODE
██╗██████╗ ███████╗██████╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗
██║██╔══██╗██╔════╝██╔══██╗██║ ██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║██████╔╝█████╗ ██████╔╝██║ ██║ ██║ ██║██║ ██║█████╗
██║██╔══██╗██╔══╝ ██╔══██╗██║ ██║ ██║ ██║██║ ██║██╔══╝
██║██║ ██║███████╗██║ ██║██║ ╚██████╗╚██████╔╝██████╔╝███████╗
╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝
IRERI CODE (ireri-code) is an interactive, terminal-based AI coding agent and Python library. It inspects repositories, plans and executes multi-step coding tasks, edits and creates files, runs terminal commands (including background servers/bots with live log streaming), and recovers automatically from errors—directly from your command line.
Installation
Install directly from PyPI:
pip install ireri-code
Or install in an isolated CLI environment with pipx:
pipx install ireri-code
To upgrade to the latest release:
pip install --upgrade ireri-code
Quick Start
Launch the agent from any project directory:
ireri
On first run (if no API key is configured), an interactive onboarding wizard guides you through setup:
- NVIDIA NIM Preset (Recommended Free Tier) — Base URL (
https://integrate.api.nvidia.com/v1) and default model (nvidia/nemotron-3.5-super-vl-120b-a12b) are pre-configured; you only enter your API key from build.nvidia.com. - Custom Provider — Enter any OpenAI-compatible Base URL, API key, and default model (OpenAI, OpenRouter, Groq, Ollama, vLLM, LM Studio, etc.).
- Skip for now — Start
ireriwithout an API key and configure it later with/provideror/settings.
Credentials are automatically synchronized across ~/.ireri-code/config.json, saved profiles (~/.ireri-code/profiles.json), and environment variables.
Non-Interactive / .env Configuration
You can also configure via a .env file or CLI flags:
OPENAI_API_KEY=nvapi-your-key-here
OPENAI_BASE_URL=https://integrate.api.nvidia.com/v1
OPENAI_MODEL=nvidia/nemotron-3.5-super-vl-120b-a12b
ireri --model gpt-4o-mini --yes
Key Features
- Interactive Arrow-Key Navigation:
- Browse and execute
/provider,/settings,/model,/config,/ps,/logs,/queue, and/helpusing↑/↓arrows andEnter. - Typing a partial slash command (e.g.
/seor/m) and pressingEnterautomatically selects the first matching suggestion.
- Browse and execute
- Interactive Tool Approval & Guidance:
- Approve once (
y), deny once (n), always allow/deny in/settings(p/b), or approve/deny for the session (a/d). - When denying a tool call, optionally tell the agent what to do instead—your instruction is sent straight to the model.
- Approve once (
- Background Processes & Live Logs:
- Long-running processes (dev servers, bots, watchers) run in the background without blocking the prompt.
- Inspect or stream live output anytime with
/psand/logs.
- Non-Blocking Chat, Queuing & Side-Notes:
- Queue follow-up tasks while the agent is working, or use
/btw <question>to ask a side question and inject guidance into the running context.
- Queue follow-up tasks while the agent is working, or use
- Session Persistence & Auto-Recovery:
- Automatically saves and restores project sessions in
.ireri/, tracks token usage (/tokens), and retries transient API failures with exponential backoff.
- Automatically saves and restores project sessions in
Slash Commands
Type / in the prompt to open auto-completion:
| Command | Description |
|---|---|
/provider |
Interactive arrow-key menu to switch, add, or delete AI provider profiles |
/provider nvidia |
Quick 1-step setup for NVIDIA NIM free tier |
/settings |
Open interactive provider, config, and tool access settings |
/settings tools |
Interactive editor for per-tool permissions (allow, ask, deny) |
/model |
Fetch and switch models interactively with arrow keys |
/models |
List available models from the active provider |
/config |
View or interactively edit agent configuration (max_iterations, timeouts, etc.) |
/ps |
List, inspect, or stop ongoing background processes |
/logs |
View or follow live logs of a running/recent process (/logs [follow] [id]) |
/btw <question> |
Ask a direct side-question and guide the agent without stopping the current task |
/queue |
View, add, or clear queued follow-up tasks |
/tokens |
View session tokens sent/received and estimated context size |
/status |
Show current model, workspace, queue, and token status |
/history |
View recent conversation history |
/continue |
Restore the previous saved session |
/errors |
View recent entries from the debug error log |
/clear |
Clear the terminal screen |
/reset |
Reset the current session context |
/help |
Interactive slash command browser |
/version |
Show installed version |
/exit |
Exit the session (/quit, /q) |
CLI Reference
Usage: ireri [OPTIONS] COMMAND [ARGS]...
Default (no subcommand): starts interactive chat in the current directory.
--project, -p Project directory (default: current directory)
--model, -m Model identifier to use
--base-url, -u API base URL
--api-key, -k API key
--max-iterations, -i Maximum loop iterations per task [default: 1000]
--yes, -y Auto-approve all tool calls
--new Start a fresh session without resuming history
Commands:
chat Start an interactive chat session (alias for default)
run <task> Execute a one-shot task (supports --json)
tools List all available built-in tools
config View or update saved configuration
init Initialize a project with .env and .gitignore
Python Library Usage
ireri-code can also be embedded programmatically in Python applications:
import asyncio
from agent import AgentController, run_agent_task
# Run a one-shot task in a project directory
result = asyncio.run(run_agent_task("Add unit tests for utils.py", project_path="."))
print(result)
Or use AgentController directly for custom approval and progress hooks:
import asyncio
from agent import AgentController
async def main():
controller = AgentController()
controller.set_approve_all(True)
response = await controller.run_task("Summarize the repository structure")
print(response)
asyncio.run(main())
License
MIT License.
Metadata
Release files for ireri-code 2.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ireri_code-2.1.6-py3-none-any.whl | Python 3 | none | any | Details for ireri_code-2.1.6-py3-none-any.whl |
Release files / ireri_code-2.1.6-py3-none-any.whl
| Download URL | ireri_code-2.1.6-py3-none-any.whl |
|---|---|
| Size | 69.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3d21681e3198809660ab59ff133af39d99c9501cc29ebbfe716010930516546
|
|
BLAKE2b-256 checksum How to use checksums |
438b76d9b0ea570a93829250a6335ec882fb4f807cf4efe93f2fd3e1b438c32d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|
Security for ireri-code 2.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.