---
layout: default
---

# Checkpointer: SqliteSaver

<div class="mt-4 text-xs">

<v-click>

**SqliteSaver**: Persistencia en SQLite (local)

```bash
npm install @langchain/langgraph-checkpoint-sqlite
```

</v-click>

<v-click>

```typescript
import { createAgent } from "langchain";
import { SqliteSaver } from "@langchain/langgraph-checkpoint-sqlite";

const checkpointer = SqliteSaver.fromConnString("./agent_memory.db");
await checkpointer.setup();  // Crear tablas

const agent = createAgent({
  model: "mistral:mistral-large-latest",
  tools: [weatherTool],
  checkpointer,
});

// El estado persiste aunque reinicies la aplicación
```

</v-click>

<v-click>

<div class="mt-4 text-xs opacity-80">
Ideal para desarrollo local y aplicaciones de usuario único
</div>

</v-click>

</div>
