### Install and start the desktop app Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Install the shared frontend workspace and start the desktop application from the repository root. Requires Node.js 24, pnpm, Rust, and Tauri platform prerequisites. ```sh cd frontend pnpm install pnpm dev:desktop ``` -------------------------------- ### Install development dependencies: namespace, Dex, PostgreSQL Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Creates the namespace and initial infrastructure (Dex, PostgreSQL) for the example. Waits for the postgres and dex deployments to be ready. ```console kubectl apply -f examples/kubernetes/infrastructure.yaml kubectl -n agentdesktop rollout status deployment/postgres kubectl -n agentdesktop rollout status deployment/dex ``` -------------------------------- ### Start agentdesktop daemon with example config Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Starts the daemon with the example configuration. When Dex opens in the browser, sign in with admin@example.com / password. After enrollment, the controller distributes a Claude Code company announcement and configures Claude Code's Anthropic base URL to use Agentgateway. ```console agentdesktop daemon --user --config examples/kubernetes/agentdesktop.yaml ``` -------------------------------- ### Install Playwright and start controller Storybook Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/controller/README.md Installs the Playwright Chromium browser (required once per Playwright version) and starts the controller Storybook at http://localhost:6007/. ```sh cd frontend pnpm --filter @agentdesktop/controller-web exec playwright install chromium pnpm storybook:controller ``` -------------------------------- ### Start the controller Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Starts the Agentdesktop controller using the provided configuration file. ```console agentdesktop-controller --config examples/claude/controller.yaml ``` -------------------------------- ### Install Agentdesktop from source Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/README.md Clone the repository and install the binary using the provided Makefile. ```sh git clone https://github.com/agentdesktop-dev/agentdesktop.git cd agentdesktop corepack enable make install ``` -------------------------------- ### Default configuration path Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md The installer creates an empty configuration file at this path. The service can start before a tenant configuration is provisioned. ```text %ProgramData%\AgentDesktop\config.yaml ``` -------------------------------- ### Install Playwright and start Storybook Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Install the Playwright browser once per Playwright version and start the desktop Storybook. The desktop views have deterministic Storybook states for development, interaction tests, responsive checks, and automated accessibility checks. ```sh cd frontend pnpm --filter @agentdesktop/desktop-web exec playwright install chromium pnpm storybook:desktop ``` -------------------------------- ### Install Agentdesktop controller from local chart Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Installs the controller from the local Helm chart with the provided values file. Waits for the controller deployment to be ready. ```console helm upgrade --install agentdesktop deploy/helm/agentdesktop-controller \ --namespace agentdesktop \ --values examples/kubernetes/values.yaml kubectl -n agentdesktop rollout status deployment/agentdesktop ``` -------------------------------- ### Interactive installation with msiexec Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Runs the MSI installer interactively. Requires Administrator privileges because the MSI installs a machine service and writes under Program Files and ProgramData. ```powershell msiexec.exe /i .\setup.msi ``` -------------------------------- ### Prepare repository: install Rust toolchain and pnpm Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Run these PowerShell commands from the repository root to install Rust 1.98, add the x64 MSVC target, install pnpm 11.25.0 globally, and install frontend dependencies. The pnpm version command must print 11.3.0 as pinned by frontend/package.json. Run pnpm from the frontend directory; do not use --dir from the root to avoid version mismatch. ```powershell cd C:\projects\agentdesktop rustup toolchain install 1.98 rustup target add x86_64-pc-windows-msvc --toolchain 1.98 npm install --global pnpm@11.25.0 cd frontend pnpm --version pnpm install --frozen-lockfile ``` -------------------------------- ### Run the local daemon with sudo Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Runs the installed local daemon with sudo, which automatically authorizes the invoking desktop user to access its local API. Typically runs on a different machine, but this example runs controller and daemon together. ```console sudo "$(command -v agentdesktop)" daemon \ --config examples/claude/agentdesktop.yaml ``` -------------------------------- ### Install and verify Agent Desktop package Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Installs the Agent Desktop package and verifies the privileged LaunchDaemon and application status. Requires sudo and a full path to the package if not in the current directory. ```sh sudo installer -pkg "Agent Desktop.pkg" -target / sudo launchctl print system/dev.agentdesktop.daemon "/Applications/agentdesktop.app/Contents/MacOS/agentdesktop" status ``` -------------------------------- ### Run and reconcile configuration Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/README.md Set the API key, start the required services via Docker Compose, and launch the daemon to reconcile the configuration. ```sh export ANTHROPIC_API_KEY=sk-ant-... docker compose -f examples/standalone/compose.yaml up -d agentdesktop daemon \ --config examples/standalone/config.yaml \ --user ``` -------------------------------- ### Start Dex and Agentgateway with Compose Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude-subscription/README.md Starts Dex first, then Agentgateway, because the Agentgateway config refers to Dex as the issuer. ```console docker compose -f examples/claude-subscription/compose.yaml up -d dex # start agentgateway after dex is up running as agentgateway config refers to dex as the issuer docker compose -f examples/claude-subscription/compose.yaml up -d agentgateway ``` -------------------------------- ### Start Dex and wait for readiness Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Starts Dex and waits until its OpenID configuration endpoint is reachable. The curl command retries up to 10 times with a 1-second delay and fails on any error. ```console docker compose -f examples/claude/compose.yaml up -d dex curl --fail --silent --show-error \ --retry 10 --retry-all-errors --retry-delay 1 \ http://127.0.0.1:5556/dex/.well-known/openid-configuration \ > /dev/null ``` -------------------------------- ### Build macOS installer with pnpm and Rust target Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Build the macOS installer package. The first block installs dependencies and builds for the current architecture. The second block passes a Rust target to produce an architecture-specific package, e.g. aarch64-apple-darwin. ```sh cd frontend pnpm install --frozen-lockfile pnpm --filter @agentdesktop/desktop-web dist:mac ``` ```sh pnpm --filter @agentdesktop/desktop-web dist:mac -- \ --target aarch64-apple-darwin ``` -------------------------------- ### Rename the installer to setup.msi Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Copies the single MSI found in the release bundle directory to setup.msi. Throws an error if the count of MSI files is not exactly one. ```powershell $installers = @(Get-ChildItem ` "target\x86_64-pc-windows-msvc\release\bundle\msi" ` -Filter *.msi) if ($installers.Count -ne 1) { throw "Expected one MSI, found $($installers.Count)" } Copy-Item $installers[0].FullName .\setup.msi ``` -------------------------------- ### Silent installation with msiexec Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Performs a silent installation with no reboot. Requires Administrator privileges. ```powershell msiexec.exe /i .\setup.msi /qn /norestart ``` -------------------------------- ### Start Dex and Agentgateway with Docker Compose Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/standalone/README.md Sets the Anthropic API key and starts Dex and Agentgateway from the repository root using Docker Compose. Requires Docker with Compose and an Anthropic API key. ```sh export ANTHROPIC_API_KEY=sk-ant-... docker compose -f examples/standalone/compose.yaml up -d ``` -------------------------------- ### Start Claude Code Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude-subscription/README.md Starts Claude Code after the daemon finishes applying its configuration. ```console claude ``` -------------------------------- ### Run controller UI dev server Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/controller/README.md Starts the controller UI development server. Run from the repository root. API requests under /api are proxied to http://127.0.0.1:8080 during local development. ```sh cd frontend pnpm install pnpm dev:controller ``` -------------------------------- ### Build macOS and Windows release installers Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Build release installers on their target operating system. The macOS package installs the application and a privileged LaunchDaemon while preserving machine configuration across upgrades. The Windows command builds a per-machine MSI containing the desktop application, a headless Windows service, and a default machine configuration under %ProgramData%\AgentDesktop; it must run on Windows with WiX's VBSCRIPT prerequisite enabled. ```sh cd frontend pnpm --filter @agentdesktop/desktop-web dist:mac pnpm --filter @agentdesktop/desktop-web dist:win ``` -------------------------------- ### Start Agentgateway with Docker Compose Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Starts Agentgateway with the Anthropic API key set. On Docker Desktop, host networking must be enabled under Settings > Resources > Network; Linux supports it directly. ```console export ANTHROPIC_API_KEY=... docker compose -f examples/claude/compose.yaml up -d agentgateway ``` -------------------------------- ### MDM configuration file /etc/agentdesktop/config.yaml Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Root-owned YAML configuration deployed to /etc/agentdesktop/config.yaml. The installer creates an empty config only if the path does not already exist, so MDM may provision it before or after installation. ```yaml controller: address: https://agentdesktop.example.com heartbeatInterval: 30s ``` -------------------------------- ### Generate TLS certificates Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Runs the create-tls.sh script to generate development certificate authorities and install the controller TLS Secret. ```console examples/kubernetes/create-tls.sh ``` -------------------------------- ### Build ARM64 MSI: add target and run dist:win Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Add the aarch64-pc-windows-msvc Rust target, set the version, and run the packaging script for ARM64. The MSI is written to target\aarch64-pc-windows-msvc\release\bundle\msi\. Use a native Windows ARM64 machine or CI runner to test the installer. ```powershell rustup target add aarch64-pc-windows-msvc --toolchain 1.98 $env:AGENTDESKTOP_VERSION = "0.1.0" pnpm --filter @agentdesktop/desktop-web ` dist:win -- --target aarch64-pc-windows-msvc ``` -------------------------------- ### Install Agentgateway CRDs and controller via Helm Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Installs Agentgateway CRDs and controller using Helm from the OCI registry. Specifies the version and values file. Waits for the Agentgateway deployment to be ready. ```console export AGENTGATEWAY_VERSION=v1.4.1 helm upgrade --install agentgateway-crds \ oci://cr.agentgateway.dev/agentgateway-crds \ --version "${AGENTGATEWAY_VERSION}" \ --namespace agentgateway-system \ --create-namespace helm upgrade --install agentgateway \ oci://cr.agentgateway.dev/agentgateway \ --version "${AGENTGATEWAY_VERSION}" \ --namespace agentgateway-system \ --values examples/kubernetes/agentgateway-values.yaml kubectl -n agentgateway-system rollout status deployment/agentgateway ``` -------------------------------- ### Run Agentdesktop daemon as current user Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude-subscription/README.md Runs Agentdesktop directly as the current user with the example config and the --user flag. ```console agentdesktop daemon \ --config examples/claude-subscription/config.yaml \ --user ``` -------------------------------- ### Install Gateway API CRDs Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Installs the standard Kubernetes Gateway API CRDs, version v1.6.0, if not already present in the cluster. Uses server-side apply. ```console kubectl apply --server-side \ --filename https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.6.0/standard-install.yaml ``` -------------------------------- ### Create TLS Secret and Install Helm Chart Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/deploy/README.md Creates a Kubernetes secret with the required TLS certificates and installs the Helm chart with database and OIDC configuration. The secret must contain controller.pem, controller-key.pem, device-ca.pem, and device-ca-key.pem, and optionally gateway-jwt-key.pem when gatewayJwt is configured. For production, use a secret with controller.yaml and set existingConfigSecret instead of placing credentials in Helm values. ```bash kubectl create secret generic agentdesktop-controller-tls \ --from-file=controller.pem \ --from-file=controller-key.pem \ --from-file=device-ca.pem \ --from-file=device-ca-key.pem helm install agentdesktop deploy/helm/agentdesktop-controller \ --set-string databaseUrl='postgresql://agentdesktop:password@postgres.example.com:5432/agentdesktop?sslmode=require' \ --set-string oidc.issuer='https://id.example.com' \ --set-string oidc.clientId='agentdesktop' ``` -------------------------------- ### Uninstall AgentDesktop and AgentGateway Helm releases and delete namespaces Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Run these commands to uninstall the agentdesktop and agentgateway Helm releases, delete their namespaces, and remove the temporary CA certificate file. The PostgreSQL deployment uses emptyDir; deleting or restarting its Pod removes all example data. ```console helm uninstall agentdesktop --namespace agentdesktop helm uninstall agentgateway --namespace agentgateway-system helm uninstall agentgateway-crds --namespace agentgateway-system kubectl delete namespace agentdesktop kubectl delete namespace agentgateway-system rm -f /tmp/agentdesktop-kubernetes-device-ca.pem ``` -------------------------------- ### Run the Tauri development client with a custom socket Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Point the Tauri development client at the same socket used by the source-built daemon. The installed system daemon can remain running because the custom socket isolates the source-built processes from it. ```sh AGENTDESKTOP_SOCKET="${XDG_STATE_HOME:-$HOME/.local/state}/agentdesktop-dev/agentdesktop.sock" \ pnpm --dir frontend dev:desktop ``` -------------------------------- ### Silent MDM upgrade with installer Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Silent MDM upgrade command that replaces the application while preserving configuration and state. The PKG handles process management, stopping the daemon and terminating the menu-bar app before replacement. ```sh sudo installer -pkg "Agent Desktop.pkg" -target / ``` -------------------------------- ### Run desktop check and build Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Run verification and packaging from the repository root. ```sh make desktop-check make desktop ``` -------------------------------- ### Open the local desktop UI Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Opens the local desktop UI after enrollment. Sign in with admin@example.com / password; the controller UI is at http://127.0.0.1:8080. ```console agentdesktop ``` -------------------------------- ### Preview standalone configuration Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/README.md Run the daemon in dry-run mode to preview file actions without modifying existing tool configurations. ```sh agentdesktop daemon \ --config examples/standalone/config.yaml \ --user \ --dry-run ``` -------------------------------- ### Run agentdesktop daemon as root for Claude Desktop Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/standalone/README.md Runs the daemon as root to configure Claude Desktop, which requires root configuration. Uncomment the Claude Desktop configuration in config.yaml before running. ```sh sudo "$(which agentdesktop)" daemon \ --config examples/standalone/config.yaml ``` -------------------------------- ### Run the daemon from source Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/README.md Run the daemon from source with a disposable user-mode state directory and a separate socket. Set daemon.stateDir and daemon.socket in the config to the absolute paths printed by echo commands; config values do not expand shell variables. The configuration file must exist and contain the controller-managed or standalone configuration to test. ```sh export AGENTDESKTOP_DEV_STATE="${XDG_STATE_HOME:-$HOME/.local/state}/agentdesktop-dev" export AGENTDESKTOP_SOCKET="$AGENTDESKTOP_DEV_STATE/agentdesktop.sock" rm -rf "$AGENTDESKTOP_DEV_STATE" pnpm --dir frontend --filter @agentdesktop/desktop-web build cargo run -p agentdesktop -- daemon \ --user \ --config "$HOME/.config/agentdesktop/config.yaml" ``` -------------------------------- ### Build x64 MSI: set version and run dist:win Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Set the AGENTDESKTOP_VERSION environment variable and run the packaging script for the x86_64-pc-windows-msvc target. The MSI is written to target\x86_64-pc-windows-msvc\release\bundle\msi\. ```powershell $env:AGENTDESKTOP_VERSION = "0.1.0" pnpm --filter @agentdesktop/desktop-web ` dist:win -- --target x86_64-pc-windows-msvc ``` -------------------------------- ### Generate development keys with create-keys.sh Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Generates the development TLS and JWT keys used by the checked-in configuration. Creates five files under /tmp/agentdesktop-keys and refuses to overwrite an existing key set. ```console ./examples/claude/create-keys.sh ``` -------------------------------- ### Replace configuration and restart service (PowerShell) Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Copy a new configuration file over the default one and restart the AgentDesktop service. Requires administrator privileges. ```powershell Copy-Item .\config.yaml "$env:ProgramData\AgentDesktop\config.yaml" -Force Restart-Service AgentDesktop ``` -------------------------------- ### Create Gateway and AgentgatewayModel Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Creates the Gateway and wildcard Anthropic AgentgatewayModel, waits for the gateway to become Programmed, and verifies the model exists. ```console kubectl apply -f examples/kubernetes/agentgateway.yaml kubectl -n agentgateway-system wait \ --for=condition=Programmed gateway/agentgateway-proxy \ --timeout=300s kubectl -n agentgateway-system get agentgatewaymodel anthropic ``` -------------------------------- ### Run Storybook tests and build static Storybooks Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/controller/README.md Runs both UI test suites or builds both static Storybooks. ```sh pnpm test:storybook pnpm build:storybook ``` -------------------------------- ### Interactive uninstall (msiexec) Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Runs the MSI uninstaller with the interactive UI. Use this to remove the service and tray application. ```powershell msiexec.exe /x .\setup.msi ``` -------------------------------- ### Run provider integration tests Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/crates/agent/tests/README.md Run the provider integration tests. The first command runs all tests, the second runs only the tests for the 'codex' provider. Requires Linux and a local Docker engine; no account or API key is needed. ```sh cargo test -p agentdesktop-agent --test integration -- --nocapture # Run one provider: cargo test -p agentdesktop-agent --test integration codex -- --nocapture ``` -------------------------------- ### Silent upgrade with msiexec Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Deploys an upgrade silently. Exit code 0 indicates success, 3010 indicates success with a reboot required. ```powershell msiexec.exe /i .\agentdesktop.msi /qn /norestart ``` -------------------------------- ### Restart daemon after config change with launchctl kickstart Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Restarts the system daemon dev.agentdesktop.daemon after changing its local configuration. ```sh sudo launchctl kickstart -k system/dev.agentdesktop.daemon ``` -------------------------------- ### Manual uninstall commands for macOS Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Stops the user and system services, removes the LaunchAgents/LaunchDaemons plist files, the app bundle, and forgets the package. Preserves /etc/agentdesktop and /var/lib/agentdesktop; remove those separately only when tenant configuration and device identity should be deleted. ```sh launchctl bootout "gui/$(id -u)/dev.agentdesktop.daemon.user" 2>/dev/null || true rm -f "$HOME/Library/LaunchAgents/dev.agentdesktop.daemon.user.plist" sudo launchctl bootout system/dev.agentdesktop.daemon sudo rm -f /Library/LaunchDaemons/dev.agentdesktop.daemon.plist sudo rm -rf "/Applications/agentdesktop.app" sudo pkgutil --forget dev.agentdesktop.installer ``` -------------------------------- ### Silent uninstall (msiexec /qn /norestart) Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Performs a silent uninstall without restarting. The MSI preserves the machine configuration so upgrades and reinstalls do not overwrite tenant settings. ```powershell msiexec.exe /x .\setup.msi /qn /norestart ``` -------------------------------- ### Inspect daemon status and tools Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/README.md Check the daemon status and list discovered tools and models in a separate terminal. ```sh agentdesktop status agentdesktop discover ``` -------------------------------- ### Dry-run agentdesktop daemon for Claude Code Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/standalone/README.md Previews the changes that the daemon will make to Claude Code settings without modifying any files. The output shows the proposed changes to /home/john/.claude/settings.json, including the apiKeyHelper, companyAnnouncements, and env variables. ```sh $ agentdesktop daemon --config examples/standalone/config.yaml --user --dry-run Dry run — no files will be changed UPDATE Claude Code settings /home/john/.claude/settings.json --- current +++ proposed @@ -1,4 +1,12 @@ { + "apiKeyHelper": "'/home/john/.cargo/bin/agentdesktop' --socket '/run/user/1000/agentdesktop.sock' credential --client-id claude-code", + "companyAnnouncements": [ + "Using the local Agentgateway through Agentdesktop" + ], + "env": { + "ANTHROPIC_BASE_URL": "http://127.0.0.1:4001/", + "CLAUDE_CODE_API_KEY_HELPER_TTL_MS": "60000" + }, "model": "haiku", "permissions": { "allow": [ Summary: 1 change, 5 unchanged ``` -------------------------------- ### Verify service and local API Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/WINDOWS_INSTALLER.md Checks that the AgentDesktop service is running and that the local API status command exits successfully. ```powershell Get-Service AgentDesktop & "$env:ProgramFiles\Agent Desktop\agentdesktop.exe" status ``` -------------------------------- ### Verify Agentgateway is running Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Confirms Agentgateway is running and answers its reachability route at http://127.0.0.1:4000/. ```console docker compose -f examples/claude/compose.yaml ps agentgateway curl --fail --head http://127.0.0.1:4000/ ``` -------------------------------- ### Run agentdesktop daemon to configure Claude Code Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/standalone/README.md Runs the daemon to actually configure Claude Code. After this, running `claude` will show the programmed message and messages will traverse Agentgateway. ```sh $ agentdesktop daemon --config examples/standalone/config.yaml --user ``` -------------------------------- ### Submit PKG to Apple notary service Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Submits the PKG to Apple's notary service using a keychain profile (agentdesktop-notary) and waits for the result. Follow this with the stapler command to staple the notarization ticket. ```sh xcrun notarytool submit "Agent Desktop.pkg" \ --keychain-profile agentdesktop-notary --wait ``` ```sh xcrun stapler staple "Agent Desktop.pkg" ``` -------------------------------- ### Map service names to LoadBalancer IPs in hosts file Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Maps the in-cluster service names to the LoadBalancer IPs on the workstation. Add these entries to /etc/hosts on Linux/macOS or C:\Windows\System32\drivers\etc\hosts on Windows. The controller is on HTTPS port 443, Dex on 5556, and Agentgateway on HTTP port 80. ```text agentdesktop.agentdesktop.svc.cluster.local dex.agentdesktop.svc.cluster.local agentgateway-proxy.agentgateway-system.svc.cluster.local ``` -------------------------------- ### Watch Kubernetes services for external IPs Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Waits for the controller, Dex, and Agentgateway LoadBalancers to receive external IP addresses. Run both commands in the same terminal to watch the services until they are assigned IPs. ```console kubectl -n agentdesktop get service agentdesktop dex --watch kubectl -n agentgateway-system get service agentgateway-proxy --watch ``` -------------------------------- ### Port-Forward to Management UI Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/deploy/README.md Access the loopback-only management UI by port-forwarding to the controller deployment. The UI is exposed only on the management port, while the Service exposes the TLS-protected fleet API. ```bash kubectl port-forward deployment/agentdesktop 8080:8080 ``` -------------------------------- ### Authorize account with dseditgroup Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/frontend/desktop/MACOS_INSTALLER.md Adds a user to the agentdesktop group from an MDM login or account-provisioning script. The user may need to sign out and back in to inherit the new group access. ```sh sudo dseditgroup -o edit -a USERNAME -t user agentdesktop ``` -------------------------------- ### Composite credential format Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude-subscription/README.md Shows the composite credential format supplied by Agentdesktop when connected. ```text agentdesktop:: ``` -------------------------------- ### Stop the scenario Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude-subscription/README.md Stops Dex and Agentgateway with Compose down. ```console docker compose -f examples/claude-subscription/compose.yaml down ``` -------------------------------- ### Stop the scenario Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/claude/README.md Stops Dex and Agentgateway. The foreground daemon and controller are stopped with Ctrl-C. ```console docker compose -f examples/claude/compose.yaml down ``` -------------------------------- ### Copy development CA from Kubernetes secret Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Copies the development CA used to verify the controller from the Kubernetes secret to a local file. The output is written to /tmp/agentdesktop-kubernetes-device-ca.pem. ```console kubectl -n agentdesktop get secret agentdesktop-controller-tls \ --output jsonpath='{.data.device-ca\.pem}' | openssl base64 -d -A \ > /tmp/agentdesktop-kubernetes-device-ca.pem ``` -------------------------------- ### Create Anthropic secret Source: https://github.com/agentdesktop-dev/agentdesktop/blob/main/examples/kubernetes/README.md Stores the Anthropic API key as a Kubernetes secret in the Agentgateway namespace without persisting it to disk. Uses a dry-run apply to avoid writing the secret directly. ```console export ANTHROPIC_API_KEY=sk-ant-... kubectl -n agentgateway-system create secret generic anthropic \ --from-literal=Authorization="${ANTHROPIC_API_KEY}" \ --dry-run=client --output=yaml | kubectl apply -f - ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.