# Gateway

URL: https://docs.hanzo.ai/docs/cli/gateway

> The `hanzo gateway` commands.

Also for this capability: [API](https://docs.hanzo.ai/docs/openapi/gateway) · **CLI** · [MCP](https://docs.hanzo.ai/docs/mcp-tools/gateway) · [SDKs](https://docs.hanzo.ai/docs/sdks)

Live control of the policy your API applies to every incoming request: CORS, rate limits, cache TTL and allowed methods, changed without a redeploy.

[API reference →](https://docs.hanzo.ai/docs/openapi/gateway)

```bash
hanzo gateway traffic
```

Every command takes `--json` for the raw response and `--help` for its own flags. Sign in once with `hanzo auth login`; the commands below use that session, and the org they act in is the one it carries.

| Command                 | What it does                                   |
| ----------------------- | ---------------------------------------------- |
| `hanzo gateway traffic` | Report who is calling this org's API right now |

### Config

| Command                        | What it does                                                                                                                                                                                                                     |
| ------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `hanzo gateway config get`     | Returns the EFFECTIVE edge policy the caller is subject to: the platform CORS allowlist and pre-auth per-IP flood cap in force, plus the caller's own authenticated rate ceiling, edge-cache TTLs and accepted-method allowlist. |
| `hanzo gateway config replace` | Updates one policy scope and returns the policy in force after the write.                                                                                                                                                        |
