> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window/sign-in-and-manage-your-account.md).

# 登录并管理你的账户

通过编辑器窗口连接你的 Convai 账户，注销以切换账户，并在 Unreal Editor 中查看套餐、配额和使用详情。

Convai 编辑器窗口可帮助你将 Unreal 项目连接到 Convai。使用 Convai 账户登录，即可自动存储项目 API 密钥，并在 **账户** 部分查看套餐详情和使用配额；需要切换账户时，可通过右上角的账户菜单退出登录。

### 前提条件

* 已安装并启用 Convai Unreal Engine 插件。
* Convai 编辑器窗口可用。有关编辑器窗口的版本要求，请参阅 [Convai 编辑器窗口](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window.md) 。
* 一个 Convai 账号。
* Unreal Editor 可访问互联网。

### 完成欢迎流程

如果项目尚未完成欢迎设置，或没有有效的 API 密钥，欢迎流程可能会在 Unreal Editor 初始化后出现。

{% stepper %}
{% step %}

#### 打开 Convai 编辑器窗口

点击关卡编辑器工具栏中的 **Convai 编辑器** 按钮，或从菜单栏中选择 **Window > Convai > Open Convai Editor** 。

如果 **欢迎使用 Convai** 界面已打开，请继续下一步。
{% endstep %}

{% step %}

#### 点击“连接 Convai 账户”

点击 **连接 Convai 账户**。插件将打开 Convai 登录流程。
{% endstep %}

{% step %}

#### 完成身份验证

按照 Convai 登录流程操作。使用电子邮件和密码进行身份验证时，登录过程会在 Convai 身份验证窗口中进行。Google 或 GitHub 等 OAuth 提供商的按钮会在外部浏览器中打开。
{% endstep %}

{% step %}

#### 等待编辑器窗口打开

身份验证完成后，插件会验证并存储 API 密钥，关闭身份验证窗口，然后打开 Convai 编辑器窗口。
{% endstep %}
{% endstepper %}

{% hint style="success" %}
当 Convai 编辑器窗口打开，且 **账户** 部分显示你的套餐详情时，即表示身份验证已完成。
{% endhint %}

### 退出登录并切换账户

需要退出登录并连接其他 Convai 账户时，请使用右上角的账户菜单。

{% stepper %}
{% step %}

#### 打开账户菜单

在 Convai 编辑器窗口中，点击右上角的账户控件。该控件显示账户名称中的两个字母。
{% endstep %}

{% step %}

#### 退出登录

选择 **退出登录**。插件会清除 `API_Key`, `AuthToken`以及此项目缓存的账户详情，并将空值写入 `Config/DefaultEngine.ini`.
{% endstep %}

{% step %}

#### 使用其他账户登录

重复上述欢迎流程，并使用你想要的 Convai 账户登录。插件会自动存储新账户的 API 密钥。
{% endstep %}
{% endstepper %}

### 查看账户详情

点击导航栏中的 **账户** ，打开“账户”部分。

| 区域       | 显示内容                                                         |
| -------- | ------------------------------------------------------------ |
| **账户详情** | 当前套餐、套餐到期时间和额度续订日期                                           |
| **用量**   | Interaction 用量、ElevenLabs 用量、Core API 用量和 Pixel Streaming 用量 |

右上角的账户菜单会显示账户名称中的两个字母、身份验证后缓存的用户名和电子邮件地址，以及 **退出登录** 选项。

### 故障排查

#### 登录失败

**症状：** 身份验证流程未返回 Unreal Editor，或者登录后 Convai 编辑器窗口未打开。

**原因：** 登录尚未完成、本地回调未收到，或者 Unreal Editor 无法连接 Convai。

**解决方法：** 重新执行登录流程。身份验证完成前，请保持 Unreal Editor 处于打开状态，并确认网络允许出站 HTTPS 连接。

**验证：** Convai 编辑器窗口已打开，且 **账户** 部分显示了您的套餐详情。

#### “账户”部分未显示用量数据

**症状：** “账户”部分显示的用量值为空或为占位值。

**原因：** 窗口尚未加载用量数据、身份验证无效，或者编辑器无法连接 Convai。

**解决方法：** 关闭并重新打开 Convai 编辑器窗口。如果数据仍未加载，请从账户菜单退出登录，再次登录，然后等待 **账户** 部分刷新。

**验证：** “账户”部分显示套餐详情和用量条。

### 后续步骤

{% content-ref url="/pages/79fd9d6c59b3b63b7cf2862389b38dcf2a4493be" %}
[导出诊断日志](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window/export-diagnostic-logs.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window/sign-in-and-manage-your-account.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
