Chat with AI directly
from your terminal
PyCode is a lightweight, open-source terminal assistant for developers. Talk to LLMs, run tools, and write code — all without leaving your command line. Uses under 50 MB of RAM.
Why PyCode?
Built for developers who love the terminal.
Multi-Model
Works with OpenAI, Anthropic, Ollama, and any OpenAI-compatible API. Switch models on the fly.
Lightweight
Consistently runs under 50 MB of RAM. No Electron, no bloated runtime — just Python and your terminal.
Built-in Tools
File editor, code runner, web search, and more. PyCode can execute commands and modify files with your permission.
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.
Open Source
100% free and open-source (MIT). Audit the code, contribute, and customize to your needs.
Get Started
Choose your preferred way to install PyCode.
Binary (Linux x86_64)
Pre-compiled binary — no dependencies needed. Just download and run.
Source Code (ZIP)
Full Python source code. Requires Python 3.10+ and pip install -r requirements.txt.