Obscura CLI
Use This Skill For
obscura-cli is the first-class command-line client for Obscura Gateway. It configures local client state and sends authenticated HTTP requests to the gateway API.
Use this skill for agent/browser workflows: sessions, profiles, cookies, stealth/fingerprint controls, CDP grants, proxy policies, domain policies, remote gateway setup, and CLI troubleshooting.
For server deployment, Docker, gateway process lifecycle, API implementation, and release packaging, use the obscura-gateway skill instead.
Fast Start
Point the CLI at a gateway:
obscura-cli config set-server-url http://127.0.0.1:18789
obscura-cli config set-api-key <gateway_api_key>
obscura-cli config set-default-stealth true
Create and use an ephemeral browser session:
obscura-cli session create
obscura-cli session navigate <session_id> https://example.com/
obscura-cli session eval <session_id> "document.title"
obscura-cli session dump <session_id> --format text
obscura-cli session close <session_id>
Override stealth per session when needed:
obscura-cli session create --no-stealth
obscura-cli session create --stealth
From source, replace obscura-cli with:
cargo run --bin obscura-cli --
Always close sessions when finished. Sessions are ephemeral and backed by live gateway-owned obscura child processes.
Core Rules
server_url is what the CLI calls and what CDP grants use for public URLs.
api_key must match the gateway API key.
- Session IDs refer to live gateway runtimes; after gateway restart, create a new session.
- Prefer
session navigate, session eval, and session dump over raw CDP unless the tool specifically needs CDP.
- Use profiles for persistent identity/cookies; use ephemeral direct sessions for one-off browsing.
- Stealth defaults on unless overridden by gateway config, profile settings, or session flags.
- Session
--stealth and --no-stealth override gateway/profile defaults for that session only.
- Profile
--stealth and --no-stealth are persistent overrides; omit them to inherit the gateway default.
- Profile sessions fill missing identity fields with the built-in Chrome 145/macOS fingerprint defaults.
- Effective profile user agents are passed to
obscura serve --user-agent; timezone and viewport are applied through CDP emulation.
- Do not import cookies into a profile while it has active sessions.
Reference Files
Read only the reference that matches the task:
- CLI operations: install, setup, remote config, status, quotas, common commands, and source equivalents.
- Sessions, profiles, and cookies: lifecycle rules, profile modes, stealth/fingerprint controls, identity fields, cookie formats, and persistence gotchas.
- CLI CDP, proxies, and troubleshooting: CDP grant commands, proxy policy commands, domain policy commands, and diagnostic workflow.
1---2name: obscura-cli3description: Use this skill when a task involves installing, configuring, or using the obscura-cli client: connecting to local or remote Obscura Gateway servers, setting server URLs/API keys/default stealth, creating and closing sessions, controlling session/profile stealth, managing browser fingerprint identity fields, navigating/evaluating/dumping pages, managing profiles, importing/exporting cookies, issuing CDP grants, setting proxy/domain policies through the CLI, or giving agents command examples for browser automation workflows.4---56# Obscura CLI78## Use This Skill For910`obscura-cli` is the first-class command-line client for Obscura Gateway. It configures local client state and sends authenticated HTTP requests to the gateway API.1112Use this skill for agent/browser workflows: sessions, profiles, cookies, stealth/fingerprint controls, CDP grants, proxy policies, domain policies, remote gateway setup, and CLI troubleshooting.1314For server deployment, Docker, gateway process lifecycle, API implementation, and release packaging, use the `obscura-gateway` skill instead.1516## Fast Start1718Point the CLI at a gateway:1920```bash21obscura-cli config set-server-url http://127.0.0.1:1878922obscura-cli config set-api-key <gateway_api_key>23obscura-cli config set-default-stealth true24```2526Create and use an ephemeral browser session:2728```bash29obscura-cli session create30obscura-cli session navigate <session_id> https://example.com/31obscura-cli session eval <session_id> "document.title"32obscura-cli session dump <session_id> --format text33obscura-cli session close <session_id>34```3536Override stealth per session when needed:3738```bash39obscura-cli session create --no-stealth40obscura-cli session create --stealth41```4243From source, replace `obscura-cli` with:4445```bash46cargo run --bin obscura-cli --47```4849Always close sessions when finished. Sessions are ephemeral and backed by live gateway-owned `obscura` child processes.5051## Core Rules5253- `server_url` is what the CLI calls and what CDP grants use for public URLs.54- `api_key` must match the gateway API key.55- Session IDs refer to live gateway runtimes; after gateway restart, create a new session.56- Prefer `session navigate`, `session eval`, and `session dump` over raw CDP unless the tool specifically needs CDP.57- Use profiles for persistent identity/cookies; use ephemeral direct sessions for one-off browsing.58- Stealth defaults on unless overridden by gateway config, profile settings, or session flags.59- Session `--stealth` and `--no-stealth` override gateway/profile defaults for that session only.60- Profile `--stealth` and `--no-stealth` are persistent overrides; omit them to inherit the gateway default.61- Profile sessions fill missing identity fields with the built-in Chrome 145/macOS fingerprint defaults.62- Effective profile user agents are passed to `obscura serve --user-agent`; timezone and viewport are applied through CDP emulation.63- Do not import cookies into a profile while it has active sessions.6465## Reference Files6667Read only the reference that matches the task:6869- [CLI operations](references/cli.md): install, setup, remote config, status, quotas, common commands, and source equivalents.70- [Sessions, profiles, and cookies](references/sessions-profiles-cookies.md): lifecycle rules, profile modes, stealth/fingerprint controls, identity fields, cookie formats, and persistence gotchas.71- [CLI CDP, proxies, and troubleshooting](references/cdp-proxy-troubleshooting.md): CDP grant commands, proxy policy commands, domain policy commands, and diagnostic workflow.