> For the complete documentation index, see [llms.txt](https://newdocs.keeper.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://newdocs.keeper.io/en/keeperpam/commander-sdk/keeper-commander-sdks/sdk-command-reference/keeperpam-commands/pam-launch-command.md).

# PAM Launch Command

Launch a CLI-based KeeperPAM privileged session. This allows developers to use their preferred native terminal for connecting to a target. When "pam launch" is used, the session activity is recorded

### Launch command

Runs PAM launch preflight: resolves the resource, protocol, PAM configuration, launch credential, target host/port, and gateway (including online/offline status), then prints a summary.

<details>

<summary>DotNet CLI</summary>

**Command**: `pam-launch`

**Alias**: `pam-l`

**Parameters**:

<table><thead><tr><th width="296">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>&#x3C;record></code> (positional)</td><td>PAM resource UID or title</td></tr><tr><td><code>--credential</code> / <code>--cr</code></td><td>Launch credential (<code>pamUser</code>) UID or title (requires allow-supply flags on the record)</td></tr><tr><td><code>--gateway</code>, <code>-g</code></td><td>Gateway UID or name override</td></tr><tr><td><code>--host</code>, <code>-H</code></td><td>Custom host override as <code>host:port</code> (mutually exclusive with <code>--host-record</code>; requires <code>allowSupplyHost</code>)</td></tr><tr><td><code>--host-record</code> / <code>--hr</code></td><td>Record UID/title whose <code>host</code> / <code>pamHostname</code> field supplies the target host</td></tr><tr><td><code>--debug</code></td><td>Print resolve diagnostics</td></tr></tbody></table>

\*Note\***:** Fully not implemented yet.

**Examples**:

{% code expandable="true" %}

```csharp
My Vault> pam-launch <RESOURCE_UID>

PAM launch
----------
Record UID: <UID>
Record type: pamMachine
Protocol: ssh
Configuration UID: <CONFIG_UID>
Target host: 10.0.0.12:22 (record)
Launch credential: <UID> (<title>)
Gateway: <GATEWAY_UID> (<name>)
Gateway status: Online

Interactive terminal session is not available yet in this Commander build.
```

{% endcode %}

</details>

<details>

<summary>DotNet SDK</summary>

**Function:**

```csharp
using KeeperSecurity.Plugins.PAM;

var prepare = await LaunchUtils.PrepareAsync(vault, new PamLaunchOptions
{
    Record = "<RESOURCE_UID>",
    Credential = "<PAM_USER_UID>",   // optional
    Gateway = "<GATEWAY_UID>",       // optional
    Host = null,                     // or "host:port" (not with HostRecord)
    HostRecord = null,               // optional host source record
    Debug = false
    // AvailableControllers: optional list when resolving gateway by name
});

Console.WriteLine($"Record: {prepare.Record?.Uid} ({prepare.Record?.TypeName})");
Console.WriteLine($"Protocol: {prepare.Protocol}");
Console.WriteLine($"Config: {prepare.ConfigUid}");
Console.WriteLine($"Host: {prepare.Host}:{prepare.Port} ({prepare.HostSource})");
Console.WriteLine($"Credential: {prepare.LaunchCredential?.Uid}");
Console.WriteLine($"Gateway: {prepare.GatewayUid} online={prepare.GatewayOnline}");
```

</details>

<details>

<summary>Power Commander</summary>

**Command**: `Invoke-KeeperPamLaunch`

**Alias**: `pam-launch`

**Parameters**:

<table><thead><tr><th width="296">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><code>-Record / -r</code></td><td>PAM resource UID or title (positional)</td></tr><tr><td><code>-Credential / -cr</code></td><td>Launch credential (pamUser) UID or title(requires allow-supply flags on the record)</td></tr><tr><td><code>-Gateway / -g</code></td><td>Gateway UID or name override</td></tr><tr><td><code>-Host / -H</code></td><td>Custom host override as <code>host:port</code> (mutually exclusive with <code>--host-record</code>; requires <code>allowSupplyHost</code>)</td></tr><tr><td><code>-HostRecord / -hr</code></td><td>Record UID/title whose <code>host</code> / <code>pamHostname</code> field supplies the target host</td></tr><tr><td><code>-Debug</code></td><td>Print pam-launch resolve diagnostics</td></tr></tbody></table>

**Note:** Fully not implemented yet.

**Examples**:

```powershell
PS > Invoke-KeeperPamLaunch -Record "<pamMachine-uid-or-title>"
PS > pam-launch -r "<uid>" -Credential "<pamUser>" -Gateway "<gateway-uid>"
PS > pam-launch -r "<uid>" -Host "10.0.0.5:22"
PS > pam-launch -r "<uid>" -HostRecord "<host-record-uid>" -Debug

```

</details>

<details>

<summary>Python CLI</summary>

**Command: Coming Soon**

</details>

<details>

<summary>Python SDK</summary>

**Command: Coming Soon**

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://newdocs.keeper.io/en/keeperpam/commander-sdk/keeper-commander-sdks/sdk-command-reference/keeperpam-commands/pam-launch-command.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
