Songe trains your local model in the background on idle compute

Songe trains your local model in the background on idle compute

Songe is an open-source tool from sous-labs, licensed under Apache-2.0, that tries to make a locally served language model better at your own work without sending anything off the machine. It runs as a local service. You keep using your model as usual through opencode, pi or any OpenAI-compatible tool, and Songe sits in between: the agent talks to Songe at 127.0.0.1:7613, and Songe forwards requests to your model server. While you work, it records what happens after each of the model's actions: the tool result, the error, your next message.

When the agent has been quiet, Songe uses the idle time to teach the model to anticipate those outcomes. The README calls each learning session a Dream, and there are two kinds. A Quick Dream adds your preferences to the model's instructions in minutes. A Deep Dream trains the model itself while you are away. With auto-dream on, Dreams start once the agent has been quiet for a while, or you can press Dream in the dashboard, opened with songe open. A Dream never just disappears: it keeps going on the page, or says why it stopped.

The README describes the learning loop in four steps: read lessons, practice, train, check, and use the result only if it is better. In the reading step, Songe scans each conversation for moments that teach something: your corrections and stated rules, retries and tool errors. In the practice step, the model writes short practice scenes in your agent's own tools for each lesson. The README states that your real conversations are never trained on. In the training step, the model as it was, shown the lesson, acts as the teacher, and the same model with a small adapter, shown only the scene, acts as the student. The README names this on-policy distillation, and says earlier skills are rehearsed so they stay. In the checking step, at the moments where you reacted, the version in use and the new one each answer, and a judge compares them. The new version is used only if it does clearly better, does not change what already worked, and its answers stay healthy. One click goes back to any earlier version.

Songe is meant to stay out of the way. It runs only when your agent is quiet, memory is free and the battery is fine, and it stops the moment you are back. Before the first training it measures how much your computer can learn at once and trains on what fits. Machines without a GPU still serve and record, but do not train. On privacy, the README says there is no account, no telemetry and no cloud, and that Songe never runs your tools.

Installation is by uv or pipx (Python 3.11 or later): uv tool install songe or pipx install songe, then songe init. On macOS with Homebrew, you run brew tap sous-labs/tap, brew trust sous-labs/tap (newer Homebrew asks this once), brew install songe and songe init. Plain pip install songe works inside a virtual environment, but not outside one, because Homebrew's and most Linux distributions' Python refuse it. You need a model served locally and an agent. The songe init command finds your model server and agents, shows what it will change and asks once; the sample output shows three models found from LM Studio, opencode and pi configured, a data folder, a service that starts at login, and a loaded copy that is replaced when a better version is ready. Afterwards you pick a Songe model in your agent (opencode lists them as songe/songe/) and work as usual.

The README lists what Songe changes on your machine: its own data folder (~/Library/Application Support/songe on macOS, $XDG_DATA_HOME/songe on Linux, %LOCALAPPDATA%\songe on Windows), a songe folder inside LM Studio's models folder holding the current learned version, one provider entry in opencode and pi (with a backup), and a background service that starts at login. Your own models are never touched. Upgrades go through uv tool upgrade songe, pipx upgrade songe or brew upgrade songe, and the service moves to the new version by itself in a quiet moment. songe uninstall stops the service and restores your agent settings; --purge also deletes its data and learned versions, and should be run before brew uninstall songe. The project points to a roadmap, a Discord for questions and results, issues for ideas and bugs, and a testing board where people can share results from other setups.

Key facts

  • Songe is an Apache-2.0 open-source local proxy from sous-labs that sits between an agent (opencode, pi or any OpenAI-compatible tool) and your local model server, at 127.0.0.1:7613.
  • It records tool results, errors and your next messages, then uses idle time for a Quick Dream (edits the model's instructions in minutes) or a Deep Dream (trains the model itself while you are away).
  • Training is on-policy distillation on practice scenes the model writes; the README says your real conversations are never trained on.
  • A new version is adopted only if it does clearly better, keeps what already worked and its answers stay healthy; one click rolls back to an earlier version.
  • Install with uv, pipx or Homebrew (Python 3.11 or later for uv and pipx); machines without a GPU can serve and record but cannot train.

Why it matters

Most local-model setups stay frozen once you download the weights. Songe tries a different path: it turns your day-to-day agent use (corrections, stated preferences, tool errors) into lessons and trains your own model during idle time, all on your machine. The README says nothing leaves it: no account, no telemetry, no cloud. The split between a fast Quick Dream that edits the model's instructions and a slower Deep Dream that trains the model itself lets it act within minutes or overnight.

Who it affects

People who run a model locally, for example through LM Studio, and use it with opencode, pi or another OpenAI-compatible agent. The README's sample setup is macOS, but it also gives data paths for Linux and Windows. Machines without a GPU can serve and record but do not train, so for them it is a recorder rather than a trainer.

How to use it

Install with uv tool install songe or pipx install songe (Python 3.11 or later), or on macOS with Homebrew via brew tap sous-labs/tap and brew install songe. Then run songe init: it finds your model server and agents, shows what it will change and asks once. Pick a Songe model in your agent and work as usual. Dreams start on their own with auto-dream on, or you can press Dream in the dashboard (songe open). To undo, songe uninstall restores your agent settings, and --purge also deletes the data and learned versions. The project is licensed under Apache-2.0.

How solid is it

The source is the project's own README, so everything here is the maker's description rather than an independent test. No benchmark results, accuracy gains or measured improvements are given. No GPU model, memory size or training time for a Deep Dream is stated; Quick Dream is said to take 'minutes' only. No version number or release date is given, and no comparison with other local fine-tuning tools. The safeguard the README leans on is the check step: the new version must do clearly better in a judge's comparison, keep earlier behaviour and stay healthy before it replaces the current one.

Risks and caveats

Songe changes your setup: it adds a background service that starts at login, a provider entry in opencode and pi (with a backup) and a songe folder in LM Studio's models folder. It trains only on a GPU, and it decides what fits by measuring your machine before the first training. Whether a version 'does clearly better' is judged by a judge comparing answers, and the README gives no measured results for how well that works. It also asks you to run songe uninstall before brew uninstall songe, and notes that plain pip install is refused outside a virtual environment on Homebrew's and most Linux distributions' Python.

“A new version is used only if it passes its checks, and nothing ever leaves your machine.”

— Songe README