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

# Persistence

> How Agentbase manages chat history and computer environment persistence

> Agentbase uses a two-tier persistence model that separates conversational state from computational environments for optimal performance and cost efficiency.

## Two-Tier Persistence Model

### 1. Chat & Message History

**Automatic & Free**: Message history persists by default at no cost.

* Zero cost for storage
* Automatic for all conversations
* Use session IDs to maintain context

### 2. Computer Environment

**On-Demand Creation**: Computers are created when agents need them for code execution, file operations, or web browsing.

* Auto-pause after 5 minutes of inactivity
* Files and installations remain
* Use same session ID to reuse environment

## What's Next?

<CardGroup cols={2}>
  <Card title="Computer Details" icon="desktop" href="/build/agent-computer">
    Learn about the technical capabilities and tools available in computer environments
  </Card>

  <Card title="API Reference" icon="code" href="/api/run-agent">
    See all session and persistence parameters
  </Card>
</CardGroup>

<Tip>
  **Remember**: Chat history persists automatically and free, while computer environments are created only when needed and then persist for ongoing use.
</Tip>
