# Cloud quickstart (/en/docs/cloud-quickstart)



OmniScout Cloud is the hosted API: search, answers, and remote browser sessions with no install. The local CLI is unchanged — Cloud is additive.

## 1. Get an API key [#1-get-an-api-key]

1. Sign in at [api.omniscout.xyz](https://api.omniscout.xyz).
2. Go to **Dashboard → API Keys** → **Create key**. Copy the value — it starts with `os_live_` and is shown only once.
3. Export it:

```bash
export OMNISCOUT_API_KEY=os_live_YOUR_KEY
export OMNISCOUT_BASE_URL=https://api.omniscout.xyz
```

How keys work and the second credential (session secrets): [Authentication](/docs/authentication).

## 2. First search [#2-first-search]

```bash
curl -X POST $OMNISCOUT_BASE_URL/v0/search \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "rust async runtimes", "limit": 5}'
```

You get ranked hits with `url`, `title`, `snippet`, `score`, and `rank`, plus a `request_id` for support. See [Endpoints](/docs/endpoints#post-v0search).

## 3. First answer [#3-first-answer]

```bash
curl -X POST $OMNISCOUT_BASE_URL/v0/answer \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "What is the latest stable Rust version?"}'
```

You get an `answer` with `sources` and `confidence` — or `status: insufficient_information` with a null answer when evidence is thin. See [Endpoints](/docs/endpoints#post-v0answer).

## 4. First browser session [#4-first-browser-session]

Sessions run the same commands as the CLI, on a remote machine. Lifecycle: **create → wait until ready → act → delete**.

```bash
# Create (API key only) — save session_id AND session_secret
CREATE=$(curl -sS -X POST $OMNISCOUT_BASE_URL/v0/sessions \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"computer"}')

SESSION_ID=$(echo "$CREATE" | jq -r .session_id)
SESSION_SECRET=$(echo "$CREATE" | jq -r .session_secret)

# Poll until ready
curl -sS $OMNISCOUT_BASE_URL/v0/sessions/$SESSION_ID \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" | jq .status

# Act (API key + session secret)
curl -sS -X POST $OMNISCOUT_BASE_URL/v0/sessions/$SESSION_ID/actions \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" \
  -H "x-session-secret: $SESSION_SECRET" \
  -H "Content-Type: application/json" \
  -d '{"action":"navigate","args":{"url":"https://example.com"}}'

# Destroy (API key only)
curl -sS -X DELETE $OMNISCOUT_BASE_URL/v0/sessions/$SESSION_ID \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY"
```

Types: `"browser"` is a lightweight browser-only session; `"computer"` adds desktop control on the same session id. Sessions close after inactivity (around 30 minutes, up to 2 hours) — every command keeps them alive longer.

Prefer SDKs? See [SDKs](/docs/sdks) for the same flow in Python and TypeScript.

## 5. Check usage [#5-check-usage]

```bash
curl -sS $OMNISCOUT_BASE_URL/v0/usage \
  -H "Authorization: Bearer $OMNISCOUT_API_KEY" | jq .
```

Billing is usage-based — you pay only for what you use. See [Usage & Billing](/docs/billing).

## Next steps [#next-steps]

* [Authentication](/docs/authentication) — keys, session secrets, headers
* [Endpoints](/docs/endpoints) — every route's schemas
* [SDKs](/docs/sdks) — Python, TypeScript, curl
* [Errors](/docs/errors) — error envelope and retry rules
* [Rate limits](/docs/rate-limits) — abuse guards and spending caps
