Open Interpreter-like REPL powered by Claude Code.
Send prompts, Claude writes Python, we execute it. No tool calls, no overhead — just code.
# Requires claude CLI
npm install -g @anthropic-ai/claude-code
# Install claude-interpreter
pip install -e .# Interactive REPL
claude-interpreter
# Short alias
ci
# Single prompt
ci "list all python files in this directory"
# Use Opus
ci -m opus "refactor this code"
# Continue last session for this directory
ci -c
# Safe mode (confirm before running code)
ci --safe
# Verbose (show cost + timing)
ci -v "analyze data.csv"- You type a prompt
- Sent to Claude via
claude -p(print mode, no built-in tools) - Claude responds with Python code blocks
- Code is executed locally with full system access
- Output is fed back to Claude for the next turn
State persists across code blocks. Sessions are saved per-directory — use -c to resume.
| Command | Description |
|---|---|
exit / q |
Quit |
!<cmd> |
Run shell command |
? |
Help |
clear |
Clear screen |
reset |
Reset session |
cost |
Show total cost |
""" |
Multiline input |
claude_interpreter/
core/
interpreter.py # REPL + claude -p integration + session persistence
executor.py # Python code execution with stdout capture
ui.py # Rich terminal UI
Only dependency: rich (for the terminal UI). Everything else is Claude Code.
Sessions are saved per working directory (~/.claude_interpreter/). Use ci -c to
continue where you left off. reset in the REPL clears the saved session.