Agents program anything.
Workflows, apps with AI inside, and the agents themselves. OpenProgram agents are Python programs that write and rewrite all of them, in one workspace with chat, files, a terminal and a browser.
v1.4.0 · Apple Silicon · macOS 13.5 or later · Other platforms
Live in the terminal, or installing on a server? Use the command line →
Bring any model: 300+ providers, cloud or local
The model decides. Python makes sure the steps run.
An agent is a Python class. Branches, retries and checks are ordinary code, and self(...) is a model call.
from openprogram import Agentclass SupportAgent(Agent): def triage(self, ticket: str) -> str: """Classify the ticket, then draft a reply.""" kind = self(ticket, choices=["bug", "question"]) if kind == "bug": logs = search_logs(ticket) # your own helper return self(f"Reply using:\n{logs}") return self("Draft a short reply.")
Highlighted lines are model calls. choices makes the model pick from a fixed menu.
A graph, not a transcript
Every turn, model call and function call is a node you can inspect, branch and replay.
Agents that program themselves
An agent writes new methods into its own class. From the next turn, each one is a tool it can call.
Checked decisions
Code validates the model's pick before anything runs, and sends a bad one back for another try.
Chat, files, terminals and a browser, side by side.
The desktop App and the web UI are one workspace. The terminal UI and the CLI reach the same sessions, models and tools.
Everything an agent needs, in one place.
Operates your computer
Drives desktop apps, browser pages and remote VMs in the background. Your screen stays yours.
Any model
Several keys per provider, switched automatically at a limit.
Always on
Scheduled tasks and goals that survive restarts. Chat from where you already are.
Sub-agents
Hand parts of a task to sub-agents, each on its own branch, and get back only their results.
├ docs ✓
└ tests ✓
Tools, MCP and skills
Built-in file, shell and browser tools, MCP servers, skills, and Programs you install from GitHub.
Two ways to run OpenProgram.
The same agents and the same data, in ~/.openprogram. Most people want the App; you can add the command line later, or the other way round.
Desktop App Recommended
The full workspace in a window: chat, files, terminals, a built-in browser and computer use. It updates itself.
Command line
For terminals, servers and SSH. No window needed: chat in the terminal, or open the same workspace in your browser.
openprogramConnect a model and chat in the terminalopenprogram webOpen the workspace at localhost:18100The ideas behind it.
LLM-as-Code: Agentic Programming for Agent Harness
Agents as programs: Python owns the control flow, and the model is called where judgment is needed.
Read the paper → arXiv:2608.03270GUI-Lens: Coarse-to-Fine Cropping for GUI Grounding with General-Purpose VLMs
Finding the right element on screen with general-purpose vision-language models, behind OpenProgram's computer use.
Read the paper →Build agents that improve themselves.
Free and open source under AGPL-3.0. Bring the models you already use.