> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/integrations/cn/proxy-integrations/datacenter-proxies-guides/oxy-proxy-extension-for-chrome.md).

# Oxy® Proxy Extension for Chrome

[**Oxy**® **代理扩展**](https://oxylabs.io/products/chrome-proxy-extension) 是一个用于 Chrome 的代理管理扩展。它免费，可与您选择的任何代理提供商配合使用。

本快速指南展示如何集成 Oxylabs [**数据中心代理**](https://oxylabs.io/products/datacenter-proxies).

### 设置

{% stepper %}
{% step %}
[**下载**](https://chrome.google.com/webstore/detail/oxylabs-proxy-extension/infajoaodhhdogakhloedbppcbeajhoo) 并点击扩展图标打开应用。

<figure><img src="/files/f59e374cbd564681fddf85afeaf447a898dee54a" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
点击 **+添加新代理** 按钮。

<figure><img src="/files/2c068120666f08a6952ef78844ecc94c6d6b354d" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}
将打开一个新标签页，您可以 **设置您的代理配置文件**.

按如下填写详细信息：

<table data-header-hidden data-full-width="false"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>名称</strong></td><td><code>项目名称</code></td></tr><tr><td><strong>协议</strong></td><td><code>HTTP</code> 或 <code>HTTPS</code></td></tr><tr><td><strong>域名</strong></td><td><code>dc.oxylabs.io</code></td></tr><tr><td><strong>端口</strong></td><td><code>8000</code></td></tr><tr><td><strong>用户名</strong></td><td><code>user-USERNAME</code></td></tr><tr><td><strong>密码</strong></td><td><code>PASSWORD</code></td></tr></tbody></table>

{% hint style="warning" %}
请务必添加 `user-` 部分到您的用户名中。
{% endhint %}
{% endstep %}

{% step %}
点击 **保存更改**.

<figure><img src="/files/e278c16f0e8cc3a0d2403a2ff5c682e786f4c4a2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
按第一步所示打开扩展并点击 **连接**.

<figure><img src="/files/c5c6ef7bd9432c8904d90423f12d13cb8681e99b" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

好了。您现在正在使用会自动轮换 IP 地址的代理。

### 地理位置设置

要访问来自特定国家/地区的代理 IP，请在用户名后追加 `country-` 以及两位国家/地区代码。例如，对于美国代理，请使用： `user-USERNAME-country-US`。请查看 [文档](/products/cn/dai-li/datacenter-proxies/select-country.md) 了解所有支持的国家/地区。

### 静态会话

您也可以在多个请求中使用同一个代理 IP 地址。端口 `8000` 始终会轮换代理 IP，而通过端口 `8001` 则使用分配给该端口的 IP。要切换 IP，请将端口改为 `8002`, `8003`等。您可以在您的 [代理列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists).

{% hint style="success" %}
对于 **按 IP 计费** 订阅，端口是为给定列表中的某个 IP 地址分配的顺序编号。因此，端口 `8001` 使用您列表中的第一个 IP 地址。

对于 **按流量计费** 订阅中，端口 `8001` 会随机选择一个 IP 地址，但在会话期间保持一致。在这里，您可以使用范围为 `8001` 到 `63000`.
{% endhint %}

让我们添加一个使用端口的新的静态代理 `8001`:

<figure><img src="/files/85d6c947ab89eb7f78a25884cb57ac96a58257d9" alt=""><figcaption></figcaption></figure>

保存更改后，打开扩展窗口并连接到新创建的代理。

<figure><img src="/files/665d861fd1e5c45c2381946fd72a4e83406b25a0" alt="" width="375"><figcaption></figcaption></figure>

### 白名单

如果您不想在访问特定网站时使用代理，可以将其添加到白名单。打开扩展，点击 **管理代理**，然后打开 **全局绕过列表**.&#x20;

<figure><img src="/files/26b9996e99e6e5d4b9c634534948ee9444d61167" alt=""><figcaption></figcaption></figure>

例如，如果您想在访问以下地址时跳过代理： `https://ip.oxylabs.io/`，您应按如下方式输入地址： `https://ip.oxylabs.io` 或 `ip.oxylabs.io`。访问该网站后，您应该看到您的真实 IP 地址，而不是代理 IP。

{% hint style="warning" %}
保存更改后，断开并重新连接代理以启用白名单。
{% endhint %}

### 常见错误

请使用下方列出的故障排查步骤，修复在使用 Oxylabs 或其他提供商的代理时出现的常见扩展错误。

<details>

<summary><strong>代理无法连接</strong></summary>

尝试 **断开** 和 **重新连接** 扩展中的代理。如果问题仍然存在，请继续执行下面的下一步。

</details>

<details>

<summary><strong>代理凭据不正确</strong></summary>

请验证代理 **用户名** 和 **密码** 是否正确，并与您的代理提供商分配的凭据一致。

对于 Oxylabs 数据中心代理，请确保您使用的是 **代理用户的** 您在 Oxylabs 中创建的用户名和密码 [控制面板](https://dashboard.oxylabs.io/)。您始终可以在控制面板中通过以下路径编辑这些凭据： **我的产品** → **数据中心代理** → [**用户**](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/users).

</details>

<details>

<summary><strong>未追加时用户名无效 <code>user-</code></strong></summary>

Oxylabs 数据中心代理 **要求您在用户名后追加** 该 `user-` 字符串到代理用户的用户名后。例如，如果您的用户名是 `john_TFTdL`，那么您必须将用户名输入为 `user-john_TFTdL`.

</details>

<details>

<summary><strong>代理域名或端口无效</strong></summary>

请确保您使用的是有效的代理域名和端口号 **，并与您的代理提供商分配的一致**.

Oxylabs 数据中心代理的有效域名是 `dc.oxylabs.io` 以及端口 `8000`。请参阅 [有效端口完整列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists) 中的内容。您可以查看 [数据中心代理文档](broken://pages/8945268564fd27c25f7f3747b782d66cad6cde87) 以了解更多。

</details>

<details>

<summary><strong>代理端口超出范围</strong></summary>

请确认您输入的 **代理端口未超出范围**。对于 Oxylabs 数据中心代理，请参考根据订阅计划划分的端口范围列表：

* **免费代理：** 从 `8000` 到 `8005`.
* **按 IP 计费：** 取决于您购买的 IP 数量。例如，如果您已购买 `50` 个 IP，则端口范围将从 `8000` 到 `8050`.
* **按流量计费：** 从 `8000` 到 `63000`.

访问控制面板以查找您的 [带有分配端口号的代理列表](https://dashboard.oxylabs.io/?route=/overview/datacenter-proxies/proxy-lists).

</details>

<details>

<summary><strong>扩展无法工作</strong></summary>

如果扩展因某种原因无法工作，请尝试 **卸载** 和 **重新安装** 通过 [Chrome 网上应用店](https://chromewebstore.google.com/detail/oxylabs-proxy-extension/infajoaodhhdogakhloedbppcbeajhoo) 或浏览器设置。

</details>

<details>

<summary><strong>禁用第三方 VPN</strong></summary>

如果您正在使用第三方虚拟专用网络（VPN），请将其关闭。它可能会与 Oxy® 代理扩展冲突。

</details>

本指南还适用于 [住宅代理](/integrations/cn/proxy-integrations/residential-proxies-guides/oxy-proxy-extension-for-chrome.md), [ISP代理](/integrations/cn/proxy-integrations/isp-proxies-guides/oxy-proxy-extension-for-chrome.md), [移动代理](/integrations/cn/proxy-integrations/mobile-proxies-guides/oxy-proxy-extension-for-chrome-1.md), [企业版](/integrations/cn/proxy-integrations/dedicated-datacenter-proxies-guides/enterprise/oxy-proxy-manager.md) 和 [自助式独享数据中心代理](/integrations/cn/proxy-integrations/dedicated-datacenter-proxies-guides/self-service/oxy-proxy-extension-for-chrome.md).

您还可以查看我们的免费 [**Oxy**® **代理管理器应用**](https://oxylabs.io/products/proxy-manager-app) 适用于 Android。它可让您轻松添加和管理代理，并通过简单的一键连接在多个 IP 之间切换。


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.oxylabs.io/integrations/cn/proxy-integrations/datacenter-proxies-guides/oxy-proxy-extension-for-chrome.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
