# Songe

> A local training engine that teaches your own model from your agent's work while the machine is idle

- Category: Training & Fine-Tuning / Fine-Tuning Frameworks
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/sous-labs/songe
- Website: https://souslabs.ai/songe
- Canonical page: https://ai-tldr.dev/tools/songe/
- Updated: 2026-11-20

## In short

Songe is an Apache-2.0 continual-learning engine for local language models, published by Sous Labs. It runs between your coding agent (the README names opencode and pi) and your model server, and records what happens after each model action: tool results, errors and your corrections. It sits in the Fine-Tuning Frameworks category of the Training & Fine-Tuning tools and is open-source, written in Python and licensed Apache-2.0.

## Overview

Songe is an Apache-2.0 continual-learning engine for local language models, published by Sous Labs. It runs between your coding agent (the README names opencode and pi) and your model server, and records what happens after each model action: tool results, errors and your corrections. When the agent is quiet, it uses those lessons to improve the model. The project states that nothing leaves your machine.

It learns in two modes it calls dreams. Quick Dream takes a few minutes and adds the preferences you state or demonstrate to the model's instructions; each new preference can be inspected with before-and-after examples and undone. Deep Dream takes an hour or more: it turns your lessons into practice scenarios and trains a small adapter on them. A new version is used only if it passes checks, and you can roll back to any earlier version.

Songe works with LM Studio, vLLM, Ollama, llama.cpp and mlx-lm model servers. Training is best supported on Apple Silicon through MLX; NVIDIA and AMD GPUs work through PyTorch but are less tested, and a machine without a GPU can still serve and record.

## What it does

- Records tool results, errors and corrections between your agent and your model server
- Quick Dream: adds stated preferences to the model's instructions in minutes, with before-and-after examples
- Deep Dream: trains a small adapter on practice scenarios built from your lessons
- Runs only when the machine is idle (auto-dream), or on demand with `songe sleep`
- A new version goes live only if it passes checks; any version can be rolled back with `songe undo`
- Works with LM Studio, vLLM, Ollama, llama.cpp and mlx-lm
- Local dashboard (`songe open`) and `songe forget` to delete recorded conversations

## Getting started

Songe needs Python 3.11 or later and a local model server such as LM Studio, Ollama, llama.cpp, mlx-lm or vLLM.

1. Install Songe

   Install it with uv or pipx. On macOS you can use Homebrew instead (brew tap sous-labs/tap, brew trust sous-labs/tap, then brew install songe).

```bash
uv tool install songe
```

2. Run the setup

   The init command finds your model server and agents, shows the changes it will make, and asks once to confirm.

```bash
songe init
```

3. Work as usual with a Songe model

   In your agent, pick a Songe model (in opencode it is listed as songe/songe/<name>). Songe records the session and learns when the machine is idle.

4. Open the dashboard or learn now

   Use the dashboard to review what was learned, or start a Deep Dream from the terminal.

```bash
songe open
songe sleep
```

## When to use it

- Adapt a small local model to your own coding habits and corrections without a cloud service
- Use idle laptop or desktop time for fine-tuning instead of leaving the hardware unused
- Keep training data private: conversations stay on the machine and can be deleted with `songe forget`
- Roll back a model version that learned something unwanted

## Version history

- 2026-11-20: Songe appeared as a public GitHub project from Sous Labs: a local training engine that records agent work and trains a local model on idle compute.
