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

# SecretProxy

> [!TIP]
>
> Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.

[Source: node-sdk/src/lib/client/types.gen.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/lib/client/types.gen.ts)

```typescript theme={null}
export type SecretProxy = {
    /**
     * Type
     */
    type?: 'secret';
    /**
     * Server
     *
     * The secret proxy, as http://host:port or https://host:port on a public address. Omit it (or send null) to use the workspace's saved secret proxy (Settings > Integrations in the console): the other fields you send then replace the saved ones for this session, and a field sent as null keeps its saved value.
     */
    server?: string | null;
    /**
     * Username
     *
     * Basic auth username for the secret proxy.
     */
    username?: string | null;
    /**
     * Password
     *
     * Basic auth password for the secret proxy. Never stored or returned.
     */
    password?: string | null;
    /**
     * Ca Certificate
     *
     * PEM CA certificates the browser trusts for this session: for the secret proxy itself and for the certificates it presents for `hosts`. At most 16384 bytes; each must be a CA and not expired. Never include a private key.
     */
    ca_certificate?: string | null;
    /**
     * Hosts
     *
     * Hosts routed through the secret proxy: exact hostnames or a leading '*.' wildcard, without scheme, path or port, or '*' to route every host (the secret proxy then decides where to swap; '*' replaces any other entry). Required with `server`. A host preset such as `@payments` stands for a list Notte maintains (common payment providers); `GET /secret-proxy/host-presets` returns each preset's current hosts.
     */
    hosts?: Array<string> | null;
};
```

## Fields

**type** `"secret" | undefined`

**server** `string | null | undefined`

The secret proxy, as [http://host:port](http://host:port) or [https://host:port](https://host:port) on a public address. Omit it (or send null) to use the workspace's saved secret proxy (Settings > Integrations in the console): the other fields you send then replace the saved ones for this session, and a field sent as null keeps its saved value.

**username** `string | null | undefined`

Basic auth username for the secret proxy.

**password** `string | null | undefined`

Basic auth password for the secret proxy. Never stored or returned.

**ca\_certificate** `string | null | undefined`

PEM CA certificates the browser trusts for this session: for the secret proxy itself and for the certificates it presents for `hosts`. At most 16384 bytes; each must be a CA and not expired. Never include a private key.

**hosts** `string[] | null | undefined`

Hosts routed through the secret proxy: exact hostnames or a leading '*.' wildcard, without scheme, path or port, or '*' to route every host (the secret proxy then decides where to swap; '\*' replaces any other entry). Required with `server`. A host preset such as `@payments` stands for a list Notte maintains (common payment providers); `GET /secret-proxy/host-presets` returns each preset's current hosts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.