SELECT from the op-data UI.
Before you start
You will need:- An op-data workspace. Sign in at app.op-data.com and create or join an organization.
- A host you control that can run a container and reach the public internet on outbound port 443. A developer laptop works for testing; any Linux VM, Kubernetes pod, or ECS task works for production.
- A Postgres database the agent can reach, plus credentials with read access to the tables you want to preview.
1. Provision an agent deployment
In the op-data UI, open Settings → Agent deployments and click Provision. op-data creates a dedicated WorkOS Connect M2M client for this deployment and returns three values:OP_WORKOS_CLIENT_IDOP_WORKOS_CLIENT_SECRETOP_WORKOS_AUTHKIT_BASE_URL
2. Run the agent
The agent ships as a single Docker image. The minimum configuration is four environment variables plus a Postgres database URL for the agent’s own state:temporal-worker connected followed by
http listening on :8080. curl http://localhost:8080/healthz should return
ok.
See Deploying the agent for the full reference — TLS
for Temporal, canonical output URIs, AWS credentials for S3 sinks, etc.
3. Confirm the agent is registered
Back in the op-data UI, the Agent deployments page should now show your agent as Connected, with a recent heartbeat timestamp. If it stays on Pending for more than a minute, see Deploying the agent → Troubleshooting.4. Add a Postgres connection
Open Connections → New connection, pick Postgres, and fill in host, port, database, username, password, and SSL mode. Click Test connection. The UI sends the credentials through a Temporal workflow that runs on your agent — the password never lands in op-data’s control plane. On success, you will see Connected and avalidatedAt timestamp.
5. Run a preview query
From your new connection, click Preview query and enter a read-only statement:Next steps
- Connecting Postgres — field-by-field reference, SSL modes, and least-privilege user setup.
- Security — what op-data sees and what stays in your perimeter.
- Architecture — how the control plane and data plane fit together.