# Lens

```json metadata
{
  "schema_version": 2,
  "title": "Lens",
  "description": "Create and operate Lens on Redis Cloud or your own infrastructure.",
  "categories": ["docs","operate","iris"],
  "tableOfContents": {"sections":[{"children":[{"id":"redis-cloud","title":"Redis Cloud"},{"id":"self-managed","title":"Self-managed"}],"id":"deployment-options","title":"Deployment options"}]}

,
  "codeExamples": []
}
```


Lens traces your AI agent's turns, so you can see what each source returned, what entered the prompt, and how each step went.

## Deployment options

### Redis Cloud

Use Lens as a managed service on Redis Cloud.

[Create Lens](https://redis.io/docs/latest/operate/iris/lens/create-lens), connect your agent, and open Lens in the Redis Cloud console.

After setup, use the [developer quickstart](https://redis.io/docs/latest/develop/ai/context-engine/lens/quickstart) to trace your first turn.

### Self-managed

Deploy Lens on Kubernetes to run it on your own infrastructure.

[Start with the self-managed deployment guide](https://redis.io/docs/latest/operate/iris/lens/self-managed).

