Skip to main content

1. Install

No install — runs the latest published version on demand:
Slower per-invocation (npm fetches metadata). Best for occasional use.

2. Sign in

The CLI opens your browser, completes OAuth with PKCE on a temporary loopback callback, and saves the refreshable login in a private local credentials file.
Browser OAuth is best for interactive use. Existing USERINTUITION_API_KEY environments continue to work and take precedence over saved credentials.

3. Verify the connection

A JSON object with a studies array (possibly empty) confirms the CLI, your login, and network egress to api.userintuition.ai are all working.

4. Create an API key for stdio or CI

After OAuth login, the CLI can create and save an organization-scoped key:
The raw ui_sk_... key is returned once and saved locally with file mode 0600. Subsequent CLI calls and local stdio MCP sessions use it automatically. For CI, copy it into the USERINTUITION_API_KEY secret in your CI provider rather than copying the local credentials file.

5. First real call

Estimate the cost of fielding a panel for one of your studies without spending anything:
You should see the cost and timeline estimate on stdout — no panel is provisioned and nothing is charged. Review and explicitly approve the complete study plan and estimate before changing --dry_run to false.

Next steps

Command reference

Full reference for list, describe, call, and every flag.

Recipes

CI cost gates, lifecycle scripts, batch operations.