> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How Linger works

> See what Linger is, how its local models work, which part of the agent does what, and what stays on your computer.

[Linger](https://heylinger.com) is an open-source personal agent that runs on your computer. Its agent works with your files, your apps, and your signed-in browser. Its model runs on your own hardware first, and a cloud model joins only when you choose one.

This page explains the product in the order you need it. It starts with what Linger is and how its local models work. It then shows which part of the agent does what, and what runs when you stay fully local. The last sections cover the parts underneath, for developers who want to go deeper.

## What is Linger?

Linger is your personal agent. The agent that works for you is called Another Me. It remembers your people and projects, uses your computer as you do, and reaches out when something needs you.

Three choices set Linger apart from a cloud assistant:

| | Cloud assistant | Linger |
| - | - | - |
| Where the model runs | A remote server | Your own GPU or Mac, on supported hardware |
| Where memory lives | The provider's account | Your own disk |
| What it can reach | What you paste in | The files and apps you authorize |
| Who can read the code | The vendor | Everyone, because it is open source |

To see a sample workspace in your browser before installing, open the [interactive Linger demo](https://heylinger.com/#try-linger).

## How does local AI work?

Linger runs agents on a local model first. A local gateway on your computer serves the model to the agent. The approved plan selects llama.cpp or [PolyStrata](/docs/models/polystrata.md) as its engine. Prompts and replies stay on your machine, and no call is billed.

PolyStrata makes a large model fit consumer hardware. A mixture-of-experts (MoE) model uses only a few of its parts, called experts, for each token. PolyStrata keeps the busiest experts on the GPU (graphics processing unit) and the rest in RAM (random-access memory) or on the SSD (solid-state drive). With this method, a 125B model runs on a 12 GB card.

Setup checks your machine and proposes a local model that fits. Nothing downloads until you approve the plan. In setup, the local model runs behind the Pi Runtime. If your machine cannot run a local model, setup offers a Runtime that uses its own subscription.

A cloud model stays optional. You add one when your hardware is too small or a job needs a larger model. See [Local and cloud models](/docs/models/local-and-cloud.md).

## What does each part of the agent do?

An agent in Linger has four layers. Linger builds the top layer. The Runtime is an existing agent program that Linger starts as it is.

![Four local layers connect Linger agents, Runtimes, local or optional cloud models, and tools guarded by the Guardrail.](https://mintcdn.com/lev9-doc/ZjacBzP5HuzUAy1j/images/feature-agent-layers.png?fit=max\&auto=format\&n=ZjacBzP5HuzUAy1j\&q=85\&s=1ef8d1abde5296a2711b05988efa61d9)

Linger adds memory, Tasks, and the Guardrail around an existing Runtime, and the model runs locally first.

| Layer | Who builds it | What it does |
| - | - | - |
| Linger | Linger | Gives the agent its identity, memory, Skills, background Tasks, and team plans. Delivers messages and files to the agent. Checks actions with the Guardrail. |
| Runtime | Each Runtime's own vendor | Runs the agent loop: it reads, plans, calls the model, and calls tools. Linger supports Claude Code, Codex, and Pi. |
| Model | Your choice | Answers the Runtime. A local model runs on llama.cpp or PolyStrata. A cloud model runs at its provider. |
| Tools | Your computer | Desktop apps, your signed-in Chrome, the shell, files, and connected apps. The agent uses them with your account. |

Linger does not replace the Runtime. It gives the Runtime a workspace, context, and tools. See [Choose a runtime](/docs/models/choose-a-runtime.md).

## What runs when you stay fully local?

Most of Linger runs on your computer. Suppose you approve a local-model plan on a PC with a 12 GiB NVIDIA card and 32 GiB of RAM. With enough available memory, both Windows and Linux select Qwen3.6-35B-A3B on PolyStrata. You then ask Another Me to read the contracts in a project folder and write a summary Document.

1. Linger stores your message on the server, which runs on the same computer.
2. The Computer Daemon delivers the message to the agent's workspace.
3. The Pi Runtime asks the local model what to do next. The approved engine runs the model on your computer using the plan's GPU and memory allocations.
4. The Runtime reads the contract files with the shell, on your disk.
5. The agent writes the summary as a Document through the teamhub CLI, to your own server.

No step in that job leaves your computer. External services are used only for the integrations you turn on:

| Feature | Where it runs | Why |
| - | - | - |
| Agent work: chats, Tasks, desktop, browser, shell, files | Your computer | The Runtime calls the local model. |
| Rooms, Documents, run history | Your computer | Quick Install runs the server on the same computer. |
| Personal memory and agent memory | Your computer (or your chosen remote provider) | Background calls use the agent's Runtime and default model. On a local model with Pi, they stay on your computer and never switch to Codex or Claude Code; on a cloud subscription or remote endpoint, the input goes to that provider. |
| Connected apps such as Gmail and Slack | Composio | Requests to the app go through Composio. |
| Voice | Soniox and xAI | Audio goes to the service you turn on. |
| Web pages | The site you open | The browser reaches the web as you. |

See [Where your data lives](/docs/concepts/where-your-data-lives.md) for every place that keeps data.

## Can my computer run it?

A local model needs an Apple silicon Mac with at least 16 GiB of unified memory, or an NVIDIA GPU with at least 8 GiB of VRAM and enough system RAM. The NVIDIA reference configurations start at 32 GiB of RAM. Setup checks current available memory before it selects a model and context. [Hardware compatibility](/docs/hardware/compatibility.md) lists the current choices and memory requirements. [Benchmarks](/docs/hardware/benchmarks.md) describes specific experimental configurations.

## How does one message become work?

One message moves through the parts in a fixed order. Suppose you ask Another Me in a Room to draft a reply to a client.

1. **You send the message.** The server stores it in the Room.
2. **The Computer Daemon receives it.** It queues the message for that Context and brings files into the Agent workspace.
3. **The Runtime works.** It calls its model and reads the files it needs.
4. **The agent uses the teamhub CLI.** It searches your personal memory for the client and posts the draft to the Room.
5. **You review the result.** If the agent sends the email, an approval card waits for you first.

A new message in the same chat does not start a parallel reply. It joins the reply in progress or waits for the next one, so turns stay in order.

## What runs underneath?

These parts serve developers who run, extend, or contribute to Linger. You do not need them to use the product.

![The Computer Daemon delivers Room messages to the Runtime, which calls models and teamhub CLI through the Guardrail.](https://mintcdn.com/lev9-doc/242t0Vu04dEWZBPx/images/feature-local-computer.jpg?fit=max\&auto=format\&n=242t0Vu04dEWZBPx\&q=85\&s=495f0bd4168bdea0858dc83c9a8ac790)

An agent on your computer, from the Room to your desktop.

| Part | Where it runs | What it does |
| - | - | - |
| Server | One installation | Hosts the web app, stores Rooms and Documents in PostgreSQL, and checks permissions. |
| Computer Daemon | Each Computer | Connects the Computer to the server over one outgoing WebSocket and starts its agents. |
| Agent workspace | Each Computer | The folder where one agent works in one Room, Task, or Document. |
| teamhub CLI | Each Computer | The command-line tool that agents use to act in Rooms and connected apps. |
| Guardrail | Each Computer | Checks desktop, browser, and shell actions before they run. |

The Computer Daemon keeps one command queue per Context and runs eight Contexts at a time. It opens no port to the network. A Context is one agent in one Room, Task, or Document. See [Agents, Rooms, and Contexts](/docs/concepts/agents-rooms-contexts.md).

The Guardrail applies rule-based checks first. An optional model review follows, turned on with `TEAMHUB_PERMISSION_REVIEW`. The review reduces mistakes, but it is not a sandbox. An agent has the access of its Runtime on that machine. See [Computer permissions](/docs/security/computer-permissions.md) and [Approvals](/docs/security/approvals.md).

Maintained by the [SimplexAI](https://heylinger.com/about) Engineering Team. Source lives at [github.com/simplexai-labs/linger](https://github.com/simplexai-labs/linger).

## Keep learning

> [card] [Local and cloud models](/docs/models/local-and-cloud.md)
>
> Run on a local model first, and add a cloud model when you need one.

> [card] [PolyStrata](/docs/models/polystrata.md)
>
> Learn how a large model fits into limited memory.

> [card] [Hardware compatibility](/docs/hardware/compatibility.md)
>
> Check which model your Mac or PC runs.

> [card] [Architecture](/docs/developers/architecture.md)
>
> See every service and connection in detail.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.