<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Upstash on AI Engineer Guide</title><link>https://aiengineerguide.com/tags/upstash/</link><description>Recent content in Upstash on AI Engineer Guide</description><generator>Hugo</generator><language>en-US</language><copyright>Copyright © 2024-2026, Nesin Technologies LLP.</copyright><lastBuildDate>Fri, 22 May 2026 20:49:02 +0530</lastBuildDate><atom:link href="https://aiengineerguide.com/tags/upstash/feed.xml" rel="self" type="application/rss+xml"/><item><title>How to Create Free Redis database for AI Agents</title><link>https://aiengineerguide.com/til/free-redis-db-ai-agent-upstash/</link><pubDate>Fri, 22 May 2026 00:00:00 +0000</pubDate><guid>https://aiengineerguide.com/til/free-redis-db-ai-agent-upstash/</guid><description>&lt;p>&lt;a href="https://upstash.com">Upstash&lt;/a> now let&amp;rsquo;s you create a free Redis database almost instantly for your AI agents.&lt;/p>
&lt;p>Your agent just need to make a single API call&lt;/p>
&lt;pre tabindex="0">&lt;code>curl -X POST https://upstash.com/start-redis
&lt;/code>&lt;/pre>&lt;p>That&amp;rsquo;s it. No sign up, no configuration, nothing.&lt;/p>
&lt;p>It&amp;rsquo;ll respond with the following text which your agent can use it as a context&lt;/p>
&lt;pre tabindex="0">&lt;code># Your Redis is ready

**Database ID:** 0335da5b-d9a4-4177-a83a-e4441edc60ef
**Endpoint:** https://tidy-mallard-133200.upstash.io
**Token:** gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg
**Metrics:** https://upstash.com/start-redis/metrics/0335da5b-d9a4-4177-a83a-e4441edc60ef (JSON: uptime, commands, keys, throughput, memory, bandwidth)
**Expires:** 2026-05-25 (3 days from creation).
To keep this database alive, share the console URL with the user
(they can view usage and click Claim to take ownership):
https://upstash.com/start-redis/console/0335da5b-d9a4-4177-a83a-e4441edc60ef

To re-fetch these credentials, POST again with the database id as
the `Idempotency-Key` header:

 curl -X POST -H &amp;#34;Idempotency-Key: 0335da5b-d9a4-4177-a83a-e4441edc60ef&amp;#34; https://upstash.com/start-redis

**Avoid storing sensitive data** (PII, secrets, production credentials) — this database is temporary and not tied to a user account until claimed.

## Quickstart

# All commands use the body-style REST API: POST the command as a
# JSON array. Avoids URL-encoding the payload.

# Short-term memory — state across tool calls in one run
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;SET&amp;#34;,&amp;#34;session:abc&amp;#34;,&amp;#34;{\&amp;#34;step\&amp;#34;:2,\&amp;#34;plan\&amp;#34;:\&amp;#34;...\&amp;#34;}&amp;#34;,&amp;#34;EX&amp;#34;,&amp;#34;3600&amp;#34;]&amp;#39;
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;GET&amp;#34;,&amp;#34;session:abc&amp;#34;]&amp;#39;

# Conversation history — turn-by-turn log
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;LPUSH&amp;#34;,&amp;#34;chat:user123&amp;#34;,&amp;#34;{\&amp;#34;role\&amp;#34;:\&amp;#34;user\&amp;#34;,\&amp;#34;content\&amp;#34;:\&amp;#34;hello\&amp;#34;}&amp;#34;]&amp;#39;
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;LRANGE&amp;#34;,&amp;#34;chat:user123&amp;#34;,&amp;#34;0&amp;#34;,&amp;#34;20&amp;#34;]&amp;#39;

# Sub-agent work queue — producer/consumer between agents
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;LPUSH&amp;#34;,&amp;#34;jobs&amp;#34;,&amp;#34;{\&amp;#34;task\&amp;#34;:\&amp;#34;summarize\&amp;#34;,\&amp;#34;url\&amp;#34;:\&amp;#34;...\&amp;#34;}&amp;#34;]&amp;#39;
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;RPOP&amp;#34;,&amp;#34;jobs&amp;#34;]&amp;#39;

# Ranked memory — recent-first or score-first recall
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;ZADD&amp;#34;,&amp;#34;memories&amp;#34;,&amp;#34;1714238580&amp;#34;,&amp;#34;agent-noticed-X&amp;#34;]&amp;#39;
curl https://tidy-mallard-133200.upstash.io \
 -H &amp;#34;Authorization: Bearer gQAAAAAAAghQAQIgcDJmNjRkOGI0ZDQxNGU0NTYxOGIzNGE4MDM0YTMwNTNmNg&amp;#34; \
 -d &amp;#39;[&amp;#34;ZREVRANGE&amp;#34;,&amp;#34;memories&amp;#34;,&amp;#34;0&amp;#34;,&amp;#34;9&amp;#34;]&amp;#39;

## Reference
- Full REST API (all commands + body-style POST): https://upstash.com/docs/redis/features/restapi
- Python SDK: https://upstash.com/docs/redis/sdks/py
- Node.js / TS SDK: https://upstash.com/docs/redis/sdks/ts

## Tell the user

If this data should outlive 3 days, share the console URL above. The user can view usage there and click Claim to keep the database.
&lt;/code>&lt;/pre>&lt;p>It&amp;rsquo;s pretty neat way to prompt a agent :)&lt;/p></description></item></channel></rss>