---
created: 2026-04-15T21:55
tags:
  - openclaw
  - config
  - recovery
updated: 2026-04-15T20:56
---
# OpenClaw Config Backup & Restore

## Backup Location

`~/.openclaw/config-backups/`

| Backup | Date | Description |
|--------|------|-------------|
| `working-4-2026.json` | 2026-04-15 | Stable Opus 4.6 on Bedrock. 1M context, 128K max output. All agents on `us.anthropic.claude-opus-4-6-v1`. |

## Restore a Backup

```bash
# Stop gateway, restore, restart
cp ~/.openclaw/config-backups/working-4-2026.json ~/.openclaw/openclaw.json
openclaw gateway restart
```

Or as a one-liner:

```bash
cp ~/.openclaw/config-backups/working-4-2026.json ~/.openclaw/openclaw.json && openclaw gateway restart
```

## What's in `working-4-2026.json`

- **Model:** `us.anthropic.claude-opus-4-6-v1` (Bedrock cross-region inference profile)
- **Fallback:** `us.anthropic.claude-sonnet-4-6-v1`
- **Context window:** 1,000,000 tokens (1M)
- **Opus maxTokens:** 128,000
- **Sonnet maxTokens:** 64,000
- **contextTokens:** 1,000,000
- **Compaction:** safeguard mode, memory flush enabled
- **Heartbeat:** 15m, Sonnet model
- **All 12 agents configured** (main, grocery, ledger, anchor, shepherd, muse, verse, therapist, releasy-*)
- **Channels:** Signal, Discord, Stoat — all working
- **Memory:** QMD backend, hybrid search, session indexing

## ⚠️ Important

- **NEVER change `us.anthropic.*` model IDs to `anthropic.*`** — the `us.` prefix is required for Bedrock on-demand throughput
- Backup does NOT include API keys if they're in `.env` — those are separate
- Config file has redacted tokens in backup (they're the real values in the actual file)

## Creating New Backups

```bash
cp ~/.openclaw/openclaw.json ~/.openclaw/config-backups/working-$(date +%m-%Y).json
```
