Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 81 additions & 203 deletions .vitepress/config.ts

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ layout: home
hero:
name: "AgentRouter"
tagline: Non-profit AI Coding Platform
image:
src: /img/agent-logo.png
alt: "AgentRouter Logo"
actions:
- theme: brand
text: Get Started
Expand Down
16 changes: 16 additions & 0 deletions en/qwencode.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Optional
$env:OPENAI_MODEL="gpt-5" # Optional, model name
```

```bash [Windows CMD]
# Set your AgentRouter API key, available at https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Set AgentRouter's API base URL
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Optional
set OPENAI_MODEL="gpt-5" # Optional, model name
```

:::

> [!IMPORTANT]
Expand Down Expand Up @@ -82,4 +90,12 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Optional
$env:OPENAI_MODEL="gpt-5" # Optional, model name
```

```bash [Windows CMD]
# Set your AgentRouter API key, available at https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Set AgentRouter's API base URL
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Optional
set OPENAI_MODEL="gpt-5" # Optional, model name
```

:::
83 changes: 72 additions & 11 deletions en/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ $env:ANTHROPIC_AUTH_TOKEN="sk-xxx"
$env:ANTHROPIC_API_KEY="sk-xxx"
```

```cmd [Windows CMD]
# Set AgentRouter's API base URL
set ANTHROPIC_BASE_URL=https://agentrouter.org/

# Set your AgentRouter API key, available at https://agentrouter.org/console/token
set ANTHROPIC_AUTH_TOKEN=sk-xxx
set ANTHROPIC_API_KEY=sk-xxx
```

:::

> [!IMPORTANT]
Expand All @@ -52,31 +61,83 @@ $env:ANTHROPIC_API_KEY="sk-xxx"

After configuring the environment variables, use your terminal to open the project directory you want to work with, then run the following command to start Claude Code:

```bash
::: code-group

```bash [Linux/macOS]
# Navigate to project directory
cd my-project

# Launch Claude Code directly
claude
```

```powershell [Windows PowerShell]
# Navigate to project directory
cd my-project

# Launch Claude Code directly
claude
```

```cmd [Windows CMD]
# Navigate to project directory
cd my-project

# Launch Claude Code directly
claude
```

::: tip
You can add the environment variable configuration to your shell configuration file to avoid manual setup each time:
:::

## Model Selection

You can control Claude Code's model choice using environment variables:

| Variable | Description |
| -------- | ----------- |
| ANTHROPIC_MODEL | Primary model for Claude Code. Accepts a model alias (e.g., sonnet, haiku) or a full model name. |
| ANTHROPIC_SMALL_FAST_MODEL | Fast, low-latency model for lightweight/background operations. Deprecated and kept only for backward compatibility. |

Recommended model names for example:

`claude-sonnet-4-5-20250929` `claude-sonnet-4-5-20250514` `claude-haiku-4-5-20251001` `claude-3-5-haiku-20241022`


::: code-group

```bash [Linux/macOS]
# Add to ~/.bashrc or ~/.zshrc file
export ANTHROPIC_BASE_URL=https://agentrouter.org/
export ANTHROPIC_AUTH_TOKEN=sk-xxx
export ANTHROPIC_API_KEY=sk-xxx
# Primary model
export ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# Fast model for lightweight ops (deprecated; use only if needed)
export ANTHROPIC_SMALL_FAST_MODEL=claude-3-5-haiku-20241022

# Launch Claude Code
claude
```

```powershell [Windows PowerShell]
# Add to PowerShell profile ($PROFILE)
$env:ANTHROPIC_BASE_URL="https://agentrouter.org/"
$env:ANTHROPIC_AUTH_TOKEN="sk-xxx"
$env:ANTHROPIC_API_KEY="sk-xxx"
# Primary model
$env:ANTHROPIC_MODEL = "claude-sonnet-4-5-20250929"
# Fast model for lightweight ops (deprecated; use only if needed)
$env:ANTHROPIC_SMALL_FAST_MODEL = "claude-3-5-haiku-20241022"

# Launch Claude Code
claude
```

```bash [Windows CMD]
# Primary model
set ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# Fast model for lightweight ops (deprecated; use only if needed)
set ANTHROPIC_SMALL_FAST_MODEL=claude-3-5-haiku-20241022

# Launch Claude Code
claude
```

:::


> [!NOTE]
> ANTHROPIC_SMALL_FAST_MODEL is deprecated. Migrate when possible to the recommended Haiku defaults. Until migration, it will still be honored for legacy fast/background operations. ANTHROPIC_MODEL remains the primary control for interactive coding and general tasks.

16 changes: 16 additions & 0 deletions es/qwencode.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Opcional
$env:OPENAI_MODEL="gpt-5" # Opcional, nombre del modelo
```

```bash [Windows CMD]
# Establece tu clave API de AgentRouter, disponible en https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Establece la URL base de la API de AgentRouter
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Opcional
set OPENAI_MODEL="gpt-5" # Opcional, nombre del modelo
```

:::

> [!IMPORTANT]
Expand Down Expand Up @@ -82,4 +90,12 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Opcional
$env:OPENAI_MODEL="gpt-5" # Opcional, nombre del modelo
```

```bash [Windows CMD]
# Establece tu clave API de AgentRouter, disponible en https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Establece la URL base de la API de AgentRouter
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Opcional
set OPENAI_MODEL="gpt-5" # Opcional, nombre del modelo
```

:::
88 changes: 87 additions & 1 deletion es/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ $env:ANTHROPIC_AUTH_TOKEN="sk-xxx"
$env:ANTHROPIC_API_KEY="sk-xxx"
```

```cmd [Windows CMD]
# Establecer la URL base de la API de AgentRouter
set ANTHROPIC_BASE_URL="https://agentrouter.org/"

# Establecer tu clave API de AgentRouter, disponible en https://agentrouter.org/console/token
set ANTHROPIC_AUTH_TOKEN="sk-xxx"
set ANTHROPIC_API_KEY="sk-xxx"
```

:::

> [!IMPORTANT]
Expand All @@ -52,14 +61,84 @@ $env:ANTHROPIC_API_KEY="sk-xxx"

Después de configurar las variables de entorno, usa tu terminal para abrir el directorio del proyecto con el que deseas trabajar, luego ejecuta el siguiente comando para iniciar Claude Code:

```bash
::: code-group

```bash [Linux/macOS]
# Navegar al directorio del proyecto
cd mi-proyecto

# Lanzar Claude Code directamente
claude
```

```powershell [Windows PowerShell]
# Navegar al directorio del proyecto
cd mi-proyecto

# Lanzar Claude Code directamente
claude
```

```cmd [Windows CMD]
# Navegar al directorio del proyecto
cd mi-proyecto

# Lanzar Claude Code directamente
claude
```

:::

## Selección de modelo

Puedes controlar la selección de modelo de Claude Code mediante variables de entorno:

| Variable | Descripción |
| -------- | ----------- |
| ANTHROPIC_MODEL | Modelo principal de Claude Code. Acepta un alias de modelo (p. ej., sonnet, haiku) o un nombre completo. |
| ANTHROPIC_SMALL_FAST_MODEL | Modelo rápido y de baja latencia para operaciones ligeras/en segundo plano. Obsoleto; mantener solo por compatibilidad retroactiva. |

Nombres de modelos recomendados para ejemplo:

`claude-sonnet-4-5-20250929` `claude-sonnet-4-5-20250514` `claude-haiku-4-5-20251001` `claude-3-5-haiku-20241022`

::: code-group

```bash [Linux/macOS]
# Modelo principal
export ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# Modelo rápido para operaciones ligeras (obsoleto; usar solo si es necesario)
export ANTHROPIC_SMALL_FAST_MODEL=claude-3-5-haiku-20241022

# Iniciar Claude Code
claude
```

```powershell [Windows PowerShell]
# Modelo principal
$env:ANTHROPIC_MODEL = "claude-sonnet-4-5-20250929"
# Modelo rápido para operaciones ligeras (obsoleto; usar solo si es necesario)
$env:ANTHROPIC_SMALL_FAST_MODEL = "claude-3-5-haiku-20241022"

# Iniciar Claude Code
claude
```

```bash [Windows CMD]
# Modelo principal
set ANTHROPIC_MODEL=claude-sonnet-4-5-20250929
# Modelo rápido para operaciones ligeras (obsoleto; usar solo si es necesario)
set ANTHROPIC_SMALL_FAST_MODEL=claude-3-5-haiku-20241022

# Iniciar Claude Code
claude
```

:::

> [!NOTE]
> ANTHROPIC_SMALL_FAST_MODEL está obsoleto. Migra cuando sea posible a los modelos Haiku recomendados. Hasta la migración, seguirá siendo respetado para operaciones rápidas/en segundo plano de legado. ANTHROPIC_MODEL sigue siendo el control principal para tareas interactivas y generales.

::: tip
Puedes agregar la configuración de variables de entorno a tu archivo de configuración del shell para evitar configurarlas manualmente cada vez:

Expand All @@ -79,4 +158,11 @@ $env:ANTHROPIC_AUTH_TOKEN="sk-xxx"
$env:ANTHROPIC_API_KEY="sk-xxx"
```

```bash [Windows CMD]
# Agregar a la sesión CMD actual o a un script por lotes
set ANTHROPIC_BASE_URL="https://agentrouter.org/"
set ANTHROPIC_AUTH_TOKEN="sk-xxx"
set ANTHROPIC_API_KEY="sk-xxx"
```

:::
16 changes: 16 additions & 0 deletions fr/qwencode.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Optionnel
$env:OPENAI_MODEL="gpt-5" # Optionnel, nom du modèle
```

```bash [Windows CMD]
# Définir votre clé API AgentRouter, disponible sur https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Définir l'URL de base de l'API AgentRouter
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Optionnel
set OPENAI_MODEL="gpt-5" # Optionnel, nom du modèle
```

:::

> [!IMPORTANT]
Expand Down Expand Up @@ -80,4 +88,12 @@ $env:OPENAI_BASE_URL="https://agentrouter.org/v1" # Optionnel
$env:OPENAI_MODEL="gpt-5" # Optionnel, nom du modèle
```

```bash [Windows CMD]
# Définir votre clé API AgentRouter, disponible sur https://agentrouter.org/console/token
set OPENAI_API_KEY="sk-xxx"
# Définir l'URL de base de l'API AgentRouter
set OPENAI_BASE_URL="https://agentrouter.org/v1" # Optionnel
set OPENAI_MODEL="gpt-5" # Optionnel, nom du modèle
```

:::
Loading