> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

<h3 id="--service--s-service">
  \--service, -s \<service>
</h3>

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

<h3 id="--output--o-format">
  \--output, -o \<format>
</h3>

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

<h3 id="--output_to-path">
  \--output\_to \<path>
</h3>

If specified, write the JSON configuration to this path.

<h3 id="--once">
  \--once
</h3>

If set, stop the proxy after a single connection.

<h3 id="--websocket">
  \--websocket
</h3>

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