v1.4.0Several keys per provider, switched at a limit→

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

AnthropicOpenAIGoogle GeminiDeepSeekxAIMistralOpenRouterOllamavLLMand more →
How it works

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.

support_agent.py
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.

  1. A graph, not a transcript

    Every turn, model call and function call is a node you can inspect, branch and replay.

  2. 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.

  3. Checked decisions

    Code validates the model's pick before anything runs, and sends a bad one back for another try.

One workspace

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.

Context graph of a session with two user turns and their sub-agents Context graph of a session with two user turns and their sub-agents
Every turn and call is a node you can open, branch from or retry.
Download

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.

1

Desktop App Recommended

The full workspace in a window: chat, files, terminals, a built-in browser and computer use. It updates itself.

Your system

macOS

macOS 13.5 or later

Disk image (.dmg) · or the command line

Your system

Windows

Windows 10 or 11, x64

Installer (.exe) · or the command line

Your system

Linux

Ubuntu 22.04 or later, glibc 2.35+

Or the command line · arm64: .deb · AppImage

2

Command line

For terminals, servers and SSH. No window needed: chat in the terminal, or open the same workspace in your browser.

Install
$ curl -fsSL https://fzkuji.github.io/OpenProgram/install | sh
Then
openprogramConnect a model and chat in the terminal
openprogram webOpen the workspace at localhost:18100

Release notesVerify a downloadAll releasesInstall guide

Build agents that improve themselves.

Free and open source under AGPL-3.0. Bring the models you already use.