Quickstart

Configure authentication and make your first request with Gemini or DeepSeek.

Provider

Install @orcushq/gemini and configure both authentication values. See Find required keys to obtain them.

Package manager
bash
npm install @orcushq/gemini dotenv
.env
GEMINI_COOKIES="your_complete_cookie_header"GEMINI_XSRF_TOKEN="your_at_value"

Your first call

src/app.ts
import 'dotenv/config'import { GeminiWeb } from '@orcushq/gemini' const model = new GeminiWeb({  model: 'gemini-3.5 flash-lite',  cookies: process.env.GEMINI_COOKIES,  xsrfToken: process.env.GEMINI_XSRF_TOKEN,}) const response = await model.invoke(  'Explain closures in one sentence.',) console.log(response.content)console.log(response.finishReason)console.log(response.metadata.modelId)

Run with npx tsx src/app.ts. The response includes generated content, a finish reason, and model metadata.