Free Binary • Python • TUI

Chat with AI directly
from your terminal

PyCode is a lightweight, free terminal assistant for developers. Talk to LLMs, run tools, and write code โ€” all without leaving your command line. Uses under 50 MB of RAM.

๐Ÿ‘๏ธ Visitors: 347 ๐Ÿ“ฅ Downloads: 24
~/pycode โ€” python main.py

Why PyCode?

Built for developers who love the terminal.

๐Ÿง 

Multi-Model (Free)

Ships with OpenCode Zen โ€” 5 free models out of the box. No API key needed. Also works with OpenAI, Anthropic, Ollama.

โšก

Lightweight

Consistently runs under 50 MB of RAM. No Electron, no bloated runtime โ€” just Python and your terminal.

๐Ÿ› ๏ธ

Built-in Tools

11 tools: file editor, code runner, web search, glob, grep, patch, fetch, search, tasks, questions, shell.

๐Ÿ’ฌ

Chat Sessions

Persistent conversations with history. Revisit, rename, or delete sessions anytime.

๐ŸŽจ

Beautiful TUI

Powered by Textual. Rich colors, themes, and a responsive terminal interface.

๐Ÿ”“

Free to Use

100% free binary. Not open source. Feedback welcome via email (lu9dce@gmx.com) or WhatsApp (@hellocodelinux).

๐Ÿ”€

Build / Plan Modes

Build mode = full tool access. Plan mode = read-only. Switch instantly with Ctrl+B.

๐Ÿ“ฆ

Context Compaction

Auto-summarizes long conversations. Preserves decisions, file changes, and tasks while truncating old output.

๐Ÿ’พ

Session Management

Full persistence: save, load, switch, rename, delete. Sessions survive restarts.

๐ŸŽจ

Theme Picker

Multiple built-in themes, switchable at runtime (Ctrl+P).

๐Ÿค–

Model Picker

Fetch and switch models on the fly (Ctrl+O). Auto-detects free models from OpenCode Zen.

๐Ÿ“

File Picker

Interactive file browser with fuzzy filtering. Trigger with @ in the input.

โšก

Shell Integration

Run shell commands inline with !command or /shell command.

๐Ÿ”—

File References

Reference files with @path โ€” PyCode reads them on demand via the Read tool.

๐Ÿง 

Reasoning Display

Shows model "thinking" process with elapsed time (for models that support it).

๐Ÿ“Š

Diff Rendering

Colored diffs for patch results โ€” added/removed lines highlighted.

๐Ÿ“ˆ

Context Usage Bar

Real-time token usage and percentage in the status bar.

โš™๏ธ

Settings Modal

Configure API endpoint, key, and model without editing files (Ctrl+S).

โ“

Help Screen

Keyboard shortcuts reference (F1).

๐Ÿ“‹

Copy Messages

Copy assistant responses to clipboard (Ctrl+Y).

๐Ÿ›ก๏ธ

Error Dialogs

Friendly error handling for rate limits, auth failures, server errors.

๐ŸŒ

Proxy Support

Respects HTTPS_PROXY / HTTP_PROXY environment variables.

๐Ÿ“š

Models.dev Integration

Auto-fetches real context windows from models.dev catalog (same as opencode).

< 50 MB
RAM Usage
~15 MB
Binary Size
Python
Language
MIT
License

Get Started

Choose your preferred way to install PyCode.

๐Ÿ“ฆ

Binary (Linux x86_64)

Pre-compiled binary โ€” no dependencies needed. Just download and run.

๐Ÿ“ ~15 MB ๐Ÿง Linux โšก x86_64
curl -L https://pycode.kozow.com/bin/pycode -o pycode && chmod +x ./pycode
Download Binary
โœ… Copied to clipboard!