> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenRouter Provider

> Use OpenRouter with PraisonAI TypeScript

# OpenRouter Provider

Access multiple models via OpenRouter gateway.

## Environment Variables

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export OPENROUTER_API_KEY=...
```

## Quick Start

```typescript theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
import { Agent } from 'praisonai';

const agent = new Agent({
  name: 'RouterAgent',
  instructions: 'You are a helpful assistant.',
  llm: 'openrouter/anthropic/claude-3-sonnet'
});

const response = await agent.chat('Hello!');
```

## Related

* [OpenRouter CLI Usage](/docs/js/providers/openrouter-cli)
