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

# Sign-In & Access

> How you sign in to Agent Golf, and how organizations, workspaces, and roles control what you can do.

Sign in with a password, Google, GitHub, SSO, or a passkey. Your roles in the open workspace and organization then decide what you can see and do.

You sign in with email and password, a passkey, Google, GitHub, or SSO. Agent Golf checks your roles in your organization and workspace, and signs in the dashboard, the agentgolf CLI after a device approval, and Uplink with an Uplink key of the workspace.

Agent Golf checks who you are at sign-in. After that, it checks your roles in the open workspace and organization
for every request.

## Sign-in methods

| Method | On the sign-in page |
| - | - |
| Email and password | **Email**, **Password**, then **Sign In** |
| Google or GitHub | **Continue with Google** or **Continue with GitHub** |
| Single sign-on | **Continue with SSO (Okta)**, enter your **Work Email**, then select **Continue with SSO (Okta)** again |
| [Passkey](https://docs.agent.golf/account/passkeys.md) | **Sign In with a Passkey**, or your passkey in the suggestions of **Email** |

To create an account, see [Create an Account](https://docs.agent.golf/getting-started/create-account.md).

A second factor protects a password, Google, or GitHub sign-in. A passkey counts as a second factor. See [Two-Factor Authentication](https://docs.agent.golf/account/two-factor.md). An organization can [require a second factor](https://docs.agent.golf/account/two-factor.md#if-your-organization-requires-two-factor-authentication) from users who sign in with a password.

When your organization or your email domain signs in through SSO, its identity provider controls your sign-in security. You sign in through SSO, and you cannot use a passkey or an authenticator app.

## Change your password

1. Open the account menu and select **Security**.
2. In **Password**, select **Change Password**.
3. Open the link in the email, and choose a new password.

The link works even when you are signed in. After Agent Golf records the password change, your other dashboard sessions and CLI sign-ins cannot refresh. An access token that was already issued stays valid until it expires, at most 10 minutes later. Sign in again on them. If you forgot your password, select **Forgot Password?** on the sign-in page.

## Organizations and workspaces

An organization holds one or more workspaces, the organization users and roles, and the billing account. Each workspace has its own users, roles, uplink instances, and sessions. To switch, see [Switch organizations and workspaces](https://docs.agent.golf/account/workspace.md#switch-organizations-and-workspaces).

## Roles and permissions

Workspace roles give permissions in one workspace. Organization roles give permissions in the organization settings. You have the permissions of all your roles, and the dashboard hides the actions that they do not allow. See [Default roles](https://docs.agent.golf/account/users.md#default-roles) and [Organization roles](https://docs.agent.golf/account/users.md#organization-roles).

## How each client signs in

| Client | Sign-in |
| - | - |
| Dashboard | The sign-in page. |
| `agentgolf` CLI | `agentgolf login` opens the browser. You approve the sign-in on **Approve a Device**. See [Sign In](https://docs.agent.golf/cli/login.md). |
| Uplink | A workspace [Uplink key](https://docs.agent.golf/uplink/install.md#create-an-uplink-key). No person signs in. |
| Agent harnesses | Each user's [personal publishing key](https://docs.agent.golf/harnesses/overview.md#publishing-keys), sent to the uplink instance. |

On **Approve a Device**, the **Workspace** field selects the new sign-in's workspace.

## Sign-in and token lifetimes

| Sign-in | How long it lasts |
| - | - |
| Access token of the dashboard, the CLI, or an MCP client | 10 minutes. The client then renews it. |
| Dashboard | Ends after 7 days without use, and always 30 days after the sign-in. |
| `agentgolf` CLI and other device sign-ins | Ends after 30 days without use. Each renewal starts the 30 days again. |
| [MCP client](https://docs.agent.golf/mcp/access.md#how-long-a-sign-in-lasts) | Ends 30 days after the approval. A renewal does not move this end. |
| Dashboard credential for the [Uplink local API](https://docs.agent.golf/uplink/local-api.md#how-access-is-authorized) | 60 seconds, for one session on one uplink instance. |

Some actions need a recent dashboard sign-in:

* To approve a device or an MCP client, or to remove a passkey, your dashboard sign-in must be less than 24 hours old.
* To create an Uplink key or a publishing key in the dashboard, your dashboard sign-in must be less than 24 hours old. A CLI or other device sign-in with the required permission can create keys without this limit.
* To add a passkey, to set up, replace, or remove an authenticator app, or to generate recovery codes, you must have signed in during the last 10 minutes.

After an older sign-in, the dashboard asks you to sign in again first.


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