Skip to main content
Every request to Xpoz requires authentication. Choose the method that fits your use case:
MethodBest forComplexity
Access KeySDKs, CLI, scripts, quick prototypingSimplest
Google Sign-InClaude Desktop, browser-based clientsAutomatic
Bearer TokenClaude Code, N8N, programmatic MCP accessOne-time setup

Credential precedence

When multiple credentials are available, Xpoz resolves them in this order:
  1. Explicit parameter passed to the client constructor (apiKey / api_key)
  2. Environment variable (XPOZ_API_KEY)
  3. Stored configuration (from CLI auth login or prior sign-in)

Access Key authentication

The simplest way to authenticate. Get your key and start querying immediately.

Step 1: Get your access key

Sign up at xpoz.ai and navigate to the dashboard. Your access key is available on the Get Token page at xpoz.ai/get-token.

Step 2: Use the key

Pass the key directly or set it as an environment variable:
export XPOZ_API_KEY=your-api-key
import { XpozClient } from '@xpoz/xpoz';

const client = new XpozClient({ apiKey: 'your-api-key' });

await client.connect();
Never commit access keys to version control. Use environment variables or a secrets manager in production.

Next steps

Quickstart

Start querying with your credentials

MCP Tools

Browse all 48 available tools