---
title: "在 llama.vscode 中使用 Lazu（官方内置选项）"
description: "在 llama.vscode 的 OpenAI 兼容服务商选择器中直接选中 Lazu，在 VS Code 中用一把 API Key 调用 Claude、GPT、Gemini 与 DeepSeek。"
source: https://lazu.ai/docs/zh/integrations/llama-vscode
updated: 2026-12-04
---

# llama.vscode

[llama.vscode](https://github.com/ggml-org/llama.vscode) 是 `ggml-org` 官方维护的 VS Code 代码补全与对话插件。**Lazu** 已内置在插件的 OpenAI 兼容服务商选择器中。

## 1. 在插件中选择 Lazu

1. 在 VS Code 中打开 **llama.vscode** 侧边栏或命令面板。
2. 添加 OpenAI 兼容模型/服务商，在选择器中直接选中 **Lazu**。
3. 粘贴在[控制台](https://lazu.ai/console/token)创建的 API Key，即可拉取模型列表并开始使用。

## 2. 内置预设参数

| 字段       | 值                                            |
| -------- | -------------------------------------------- |
| 服务商      | `Lazu`                                       |
| Base URL | `https://api.lazu.ai`（插件会自动拼接 `/v1/...`）     |
| 模型列表     | 实时拉取 `GET https://api.lazu.ai/v1/models`     |
| API Key  | 在[控制台](https://lazu.ai/console/token)创建的 Key |
