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

# Choose the model

> Pick the model your agent runs on, switch to another provider such as OpenAI or Google, and give the agent that provider's API key on Jaccard and locally.

Your agent runs on the model named in `agent/agent.ts`, through your provider's AI SDK package.

```ts agent/agent.ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { anthropic } from "@ai-sdk/anthropic";
import { defineAgent } from "eve";

export default defineAgent({
  model: anthropic("claude-opus-5-5"),
  // Keeps sessions durable on Jaccard: jaccard deploy needs it.
  experimental: { workflow: { world: process.env.JACCARD_WORKFLOW_WORLD } },
});
```

Change the model ID to switch models.

## Use another provider

Any provider with an AI SDK package works. The AI SDK's [provider list](https://ai-sdk.dev/providers/ai-sdk-providers) has each one's package and the key it reads. For OpenAI:

**1. Add the provider's package**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
pnpm add @ai-sdk/openai
```

**2. Change the import and the model**

```ts agent/agent.ts theme={"theme":{"light":"github-light","dark":"github-dark"}}
import { openai } from "@ai-sdk/openai";
import { defineAgent } from "eve";

export default defineAgent({
  model: openai("gpt-4.1-mini"),
  experimental: { workflow: { world: process.env.JACCARD_WORKFLOW_WORLD } },
});
```

**3. Give the agent the key**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
jaccard env add OPENAI_API_KEY
```

Add the same key to `.env.local` for `pnpm dev`.

**4. Deploy**

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
jaccard deploy
```

OpenRouter reaches many vendors' models with one key: add `@openrouter/ai-sdk-provider`, import `openrouter` from it, give the agent `OPENROUTER_API_KEY`, and use model IDs such as `anthropic/claude-opus-5.5`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.