> For AI agents: the complete documentation index is available at https://proxykite.com/docs/llms.txt, the full documentation bundle is available at https://proxykite.com/docs/llms-full.txt.

# Proxy formats

Every proxy is one public **host:port** on our cloud router (ports 30000–30999). The same port speaks **HTTP and SOCKS5**:
the protocol is detected from the first byte, so use whichever your tool supports. You can also give a proxy
[separate HTTP and SOCKS5 ports](https://proxykite.com/docs/api/ports.md) and pick the numbers yourself.

Each proxy has one or more proxy users (username + password). You find them in the panel, in
[`GET /proxies/{id}`](https://proxykite.com/docs/api/proxies.md) (`users[]`, including ready-made `http` and `socks5` URLs) and in
[`GET /export`](https://proxykite.com/docs/api/export.md).

## Connection strings

Using host `ind1.proxykite.com`, port `30007`, user `u7abc`, password `s3cret`:

| Format              | Example                                          | Where                                            |
| ------------------- | ------------------------------------------------ | ------------------------------------------------ |
| `ip:port@user:pass` | `ind1.proxykite.com:30007@u7abc:s3cret`          | proxies table in the panel; export `hostport_at` |
| `ip:port:user:pass` | `ind1.proxykite.com:30007:u7abc:s3cret`          | export `hostport` (most proxy checkers / bots)   |
| `user:pass@ip:port` | `u7abc:s3cret@ind1.proxykite.com:30007`          | export `userpass`                                |
| HTTP URL            | `http://u7abc:s3cret@ind1.proxykite.com:30007`   | `users[].http`, CSV `http_url`                   |
| SOCKS5 URL          | `socks5://u7abc:s3cret@ind1.proxykite.com:30007` | `users[].socks5`, CSV `socks5_url`               |

For SOCKS5, prefer `socks5h://` in tools that support it (curl, Python requests): DNS is then resolved through the
proxy, on the mobile network, instead of on your machine.

## Using the proxy


**curl**

```bash
# HTTP proxy
curl -x 'http://u7abc:s3cret@ind1.proxykite.com:30007' https://api.ipify.org
# SOCKS5 proxy (DNS through the proxy)
curl -x 'socks5h://u7abc:s3cret@ind1.proxykite.com:30007' https://api.ipify.org
```


**Python**

```python
import requests  # SOCKS needs: pip install "requests[socks]"

proxy = "http://u7abc:s3cret@ind1.proxykite.com:30007"      # or "socks5h://u7abc:s3cret@ind1.proxykite.com:30007"
r = requests.get("https://api.ipify.org", proxies={"http": proxy, "https": proxy}, timeout=30)
print(r.text)
```


**Node.js**

```js
// npm i undici   (HTTP proxy)   ·   for SOCKS5 use the socks-proxy-agent package
import { fetch, ProxyAgent } from 'undici';

const dispatcher = new ProxyAgent('http://u7abc:s3cret@ind1.proxykite.com:30007');
const res = await fetch('https://api.ipify.org', { dispatcher });
console.log(await res.text());
```


**PHP**

```php
<?php
$ch = curl_init('https://api.ipify.org');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_PROXY => 'ind1.proxykite.com:30007',
    CURLOPT_PROXYUSERPWD => 'u7abc:s3cret',
    CURLOPT_PROXYTYPE => CURLPROXY_HTTP,          // or CURLPROXY_SOCKS5_HOSTNAME
    CURLOPT_TIMEOUT => 30,
]);
echo curl_exec($ch);
```


## Whitelisted IPs (no password)

Client IPs on a proxy's [whitelist](https://proxykite.com/docs/api/whitelist.md) may connect **without** a username and password, over HTTP or
SOCKS5 (no-auth). Everyone else must authenticate.

```bash
# from a whitelisted IP
curl -x 'http://ind1.proxykite.com:30007' https://api.ipify.org
```

## Limits per user

Each proxy user has a `max_conn` (concurrent connections, shown in `users[]`). A disabled user (`enabled: false`) or a
disabled proxy (`enabled: false`, see `disabled_reason`) refuses connections.
