> ## Documentation Index
> Fetch the complete documentation index at: https://docs.use.observer/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy on Render

> A Render Blueprint that runs the agent as a background worker on your own Render account.

The Observer Agent runs on your own Render account as a small
always-on background worker. It makes outbound HTTPS calls to Observer
and listens on no public port. Your platform's pricing applies.

[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/useobserver/agent)

## Before you start

Create the agent in Observer: **Agents**, **Add agent**, then **Cloud
platforms**. Copy the key. Observer shows it once. You paste it when
Render asks for `AGENT_KEY`.

## Deploy

**1. Open the Blueprint**

Choose **Deploy to Render** above and sign in. Render reads
`render.yaml` from the agent repository and shows one background
worker, `observer-agent`, with a 1 GB disk.

**2. Set the key**

Paste your agent key into `AGENT_KEY`. The Blueprint sets
`CLOUD_SERVER_URL` and `BUFFER_PATH`; leave them as they are.

**3. Deploy**

Choose **Deploy Blueprint**.

The worker uses the `starter` instance type, because a disk needs a
paid instance. It runs one instance: the agent's local queue is a
single-writer file. The disk at `/data` keeps the
[local queue](https://docs.use.observer/agent/concepts/local-queue.md): readings collected while
Observer is unreachable are sent once it is reachable again, including
after a redeploy.

Render asks for `AGENT_KEY` only when the Blueprint is first created.
To change the key later, for example after a
[key rotation](https://docs.use.observer/agent/guides/rotate-agent-key.md), edit the variable on
the worker's **Environment** page. Add other
[environment variables](https://docs.use.observer/agent/reference/environment-variables.md), such
as `PROMETHEUS_SERVER_URL`, on the same page.

## Check that it connected

The Add agent screen shows **Connected** within a minute of the agent
starting, and the Agents page marks the agent as **running**. If it
does not, open the worker's **Logs** in Render. The agent logs every
failed call to Observer with the reason. The most common cause is a
wrong or replaced `AGENT_KEY`.

## Upgrades

The Blueprint runs `ghcr.io/useobserver/agent:1`, which moves to each
new 1.x release. Deploy the worker again (**Manual Deploy**) to pick up
a new release.

## Remove

Delete the `observer-agent` worker from its **Settings** page. Its disk
is deleted with it. Delete the agent in Observer (**Agents**) too if
you no longer need it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.