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

# 引擎

> 选择回答的模型，并在对话中途切换。

Archetype 负责保存对话，由引擎来回答。你可以使用 Claude Code、Codex、Gemini、Cursor、OpenCode 和 Kimi Code。

引擎使用你自己的账号运行：Claude 或 ChatGPT 订阅，或者 OpenAI、Anthropic、Gemini、OpenRouter 等的 API 密钥。Archetype 不出售 token。

## 切换引擎

在消息输入框下方的标签中选择另一个引擎。对话会带着此前说过和做过的一切继续，因此可以让一个引擎找出原因，再让另一个引擎写出修复。

## 密钥

密钥和 token 放在 `~/.config/archetype/env` 中，每行一个 `NAME=value`，绝不要放进配置文件。见[配置](https://docs.archetype.ing/zh/reference/config.md)。


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