> 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/documentation/cn/kai-shi-shi-yong/kuai-su-kai-shi-dai-li.md).

# 快速开始：代理

{% hint style="success" %}
已经熟悉基础知识了？看看 [代理文档](/products/cn/dai-li.md) 或者我们便捷的 [集成中心](/integrations/cn/proxy-integrations.md).
{% endhint %}

Oxylabs 提供多种代理类型，帮助您满足各种代理需求。虽然住宅代理、数据中心代理和 ISP 代理的使用场景不同，但核心集成逻辑几乎相同。

按照下面的分步指南，只需几分钟即可开始使用 Oxylabs 代理：

{% stepper %}
{% step %}

### 设置与凭据

1. **创建账号：** 在 [Oxylabs Dashboard](https://dashboard.oxylabs.io/).
2. **购买套餐：** 选择您的代理类型（住宅、移动代理、数据中心代理、独享数据中心代理、ISP 代理，或独享 ISP 代理）。
3. **创建代理用户：** 在控制面板中导航到您的产品并创建一个代理用户（这些是用于访问您的代理的凭据，与您的控制面板登录信息分开）

{% hint style="info" %}
如果您想通过免费试用测试我们的代理，请发送电子邮件至 <support@oxylabs.io>.
{% endhint %}
{% endstep %}

{% step %}

### 您的第一条请求

测试连接最有效的方法是使用 cURL 命令。复制下面的模板，并将占位符替换为来自 **代理详情** 第 3 步中的值。

```bash
curl -x ENDPOINT:PORT -U "PREFIX-USERNAME:PASSWORD" https://ip.oxylabs.io/location
```

{% endstep %}

{% step %}

### 代理详情

在下方找到您的具体产品，以确定正确的连接详情：

<table><thead><tr><th width="172">代理类型</th><th width="150">端点</th><th width="115">轮换端口</th><th width="125">用户名前缀</th><th width="127">静态端口</th></tr></thead><tbody><tr><td>住宅</td><td><code>pr.oxylabs.io</code></td><td><code>7777</code></td><td><code>customer-</code></td><td>（使用 <code>sessid-</code>)</td></tr><tr><td>移动</td><td><code>pr.oxylabs.io</code></td><td><code>7777</code></td><td><code>customer-</code></td><td>（使用 <code>sessid-</code>)</td></tr><tr><td>数据中心</td><td><code>dc.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>独享数据中心</td><td><code>ddc.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>ISP</td><td><code>isp.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr><tr><td>独享 ISP</td><td><code>disp.oxylabs.io</code></td><td><code>8000</code></td><td><code>user-</code></td><td><code>8001</code> 及以上</td></tr></tbody></table>

{% hint style="info" %}
如果您通过销售团队购买了独享数据中心代理（企业版），您可以通过直连 IP（例如， `1.2.3.4:60000`（HTTP）或 `1.2.3.4:1180`（SOCKS5））或使用您的客户经理提供的端点。用户名无需前缀。
{% endhint %}
{% endstep %}

{% step %}

### 自定义您的请求

一旦基础连接正常工作，您就可以自定义会话或地理定位：

* **要定位到某个国家：**
  * 住宅/移动代理：添加 `-cc-US` 到您的用户名字符串中（相应调整国家代码）。
  * 共享数据中心/ISP：添加 `-country-US` 到您的用户名字符串中（相应调整国家代码）。
  * 独享（DC/ISP）：使用分配给目标国家中某个 IP 的端口（请参阅控制面板中的代理列表）。
* **要保持静态会话：**
  * 住宅 / 移动代理：添加 `-sessid-qwerty123` 到用户名字符串末尾。
  * 所有其他类型：更改端口（例如，使用 `8001` 用于 IP #1， `8002` 用于 IP #2，等等）。
    {% endstep %}
    {% endstepper %}

### 后续步骤

既然您已确认连接，接下来可以继续如下：

* **需要高级功能？** 请参阅 [产品](/products/cn/dai-li.md) 部分中每种类型的完整功能说明。
* **使用第三方工具？** 在 [集成](/integrations/cn/proxy-integrations.md) 部分中每种类型的完整功能说明。


---

# 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, and the optional `goal` query parameter:

```
GET https://developers.oxylabs.io/documentation/cn/kai-shi-shi-yong/kuai-su-kai-shi-dai-li.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
