**TL;DR:** Agents can POST upstash.com/start-redis for a free scratch database with no signup. It expires in 72 hours unless claimed. Always send a User-Agent header identifying your agent: the docs ask for it explicitly. Verify Ping the returned URL with the returned token, SET/GET a key, and confirm the 72-hour expiry is recorded somewhere you will see it before it vanishes with your test data.

## The fix

1. The database expires in 72 hours. Claim it from the console link in the response to keep it past that.

2. Treat it as scratch: no production data, no secrets you cannot rotate. It is a sandbox that self-destructs.

3. The same REST semantics apply: Bearer auth, per-command billing once claimed onto a paid tier, TLS-only RESP.

4. Integration tests that need a real Redis.

5. Prototyping a cache or session layout before touching the production database.

6. Reproducing a reported bug against a clean database.

## When to use this

- This covers exactly what the title says: Scratch Redis for agents.
- You are setting this up for the first time, or auditing an existing setup.
- You want the key gotchas in one place before you start.

## When not to use this

- You are doing a different workflow with Scratch; these steps are specific to the title above.
- You need the full reference docs; this is the short path, not the manual.

## Compatibility

- Not pinned to a specific version; follows current Scratch behavior.