# nsc proxy

Provides proxy support for instance services.

`proxy` opens a local proxy to a service running on a Namespace instance.

## Usage

```bash theme={null}
nsc proxy [instance-id] [--service <service>]
```

### Example

Proxy a VNC service from a running instance:

```bash theme={null}
nsc proxy 85a32emcg99ii --service vnc
```

```text nocopy Output theme={null}
VNC:
  Endpoint: 127.0.0.1:54321
  Username: admin
  Password: secret123
```

## Options

### --service, -s <service>

The service to proxy (e.g. `vnc`, `rdp`).

### --output, -o <format>

Output format. One of `plain` or `json`. Default is `plain`.

### --output_to <path>

If specified, write the JSON configuration to this path.

### --once

If set, stop the proxy after a single connection.

### --websocket

If set, outputs information to connect to the service directly using websockets.
