> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Ask it with GET https://upstash.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://upstash.com/docs/common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://upstash.com/docs/feedback?path=/docs/redis/overall/getstarted&helpful={true|false}&comment={comment}` records whether this page helped. The `comment` (URL-encoded, at most 500 characters) says what helped, or what was missing or wrong; a `helpful=false` rating needs it. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Upstash Redis Getting Started

> Create an Upstash Redis database in seconds

<AgentSetup product="Redis" />

Upstash Redis is a **highly available, infinitely scalable** Redis-compatible database:

- 99.99% uptime guarantee with auto-scaling ([Prod Pack](/redis/overall/enterprise#prod-pack-features))
- Ultra-low latency worldwide
- Multi-region replication
- Multi-Zone High Availability ([Prod Pack](/redis/overall/enterprise#prod-pack-features))
- Durable, persistent storage without sacrificing performance
- Automatic backups
- Optional SOC-2 compliance, encryption at rest and much more

---

## 1. Create an Upstash Redis Database

Log in to the [Upstash Console](https://console.upstash.com) (or [sign up](https://console.upstash.com) for a free account). From the **Redis** tab, click `+ Create Database` in the upper right corner. A dialog opens up:

<Frame>
  <img src="/img/getting_started/create-global.png" alt="Create a Global Redis database" />
</Frame>

**Database Name:** Enter a name for your database.

**Primary Region and Read Regions:** For optimal performance, select the Primary Region closest to where most of your writes will occur. Select the read region(s) where most of your reads will occur.

Once you click `Next` and select a plan, your database is running and ready to connect:

<Frame>
  <img src="/img/getting_started/database.png" alt="Redis database details in the Upstash Console" width="100%" />
</Frame>

---

## 2. Connect to Your Database

You can connect to Upstash Redis with any Redis client. For simplicity, we'll use `redis-cli`. See the [Connect Your Client](../howto/connect-client) section for connecting via our TypeScript or Python SDKs and other clients.

<Tip>
  You can copy the `redis-cli` command to connect to your database from the **Details** tab of your database in the Upstash Console. The **Token** shown there is also your database's password.
</Tip>

The Redis CLI is included in the official Redis distribution. If you don't
have Redis installed, you can get it [here](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/).

Connect to your database and execute commands on it:

```bash
> redis-cli --tls -a YOUR_TOKEN -h YOUR_ENDPOINT -p YOUR_PORT
YOUR_ENDPOINT:YOUR_PORT> set counter 0
OK
YOUR_ENDPOINT:YOUR_PORT> get counter
"0"
YOUR_ENDPOINT:YOUR_PORT> incr counter
(int) 1
YOUR_ENDPOINT:YOUR_PORT> incr counter
(int) 2
```

As you run commands, you'll see updates to your database metrics in (almost) real-time. These database metrics are refreshed every 10 seconds.

<Frame>
  <img src="/img/getting_started/charts.png" alt="Redis metrics charts in the Upstash Console" width="100%" />
</Frame>

Congratulations! You have created an ultra-fast Upstash Redis database! 🎉

<Check>
**New: Manage Upstash Redis with your agent**

Manage Upstash Redis databases from Claude and other AI tools by using our [MCP server](/agent-resources/mcp). To let an agent run commands directly against a single database, use the dedicated [Redis MCP](/redis/sdks/mcp).
</Check>

## Next steps

- [Connect your client](../howto/connect-client): TypeScript, Python, Go, Java, and other Redis clients.
- [Use cases](/redis/overall/usecases): caching, rate limiting, queues, pub/sub, AI workloads, and more.
- [Upstash Redis Search](/redis/search/introduction): full-text search built into Upstash Redis.
- [REST API](/redis/features/restapi): connect from edge and serverless runtimes where TCP is restricted.
- [Pricing & Billing](/redis/overall/billing): free tier, Pay-As-You-Go, and Fixed plan limits, plus how billing works.

## SDKs

<Catalog product="redis" type="sdk" cols={3} />
