Prerequisites
- An ArgoCD instance accessible from CloudThinker: self-hosted (default port
8888) or managed via Akuity Platform. - ArgoCD CLI installed (
brew install argocd); Akuity Platform also requires the Akuity CLI. - Admin access to ArgoCD to enable the
apiKeycapability and generate a token.
Setup
Select your ArgoCD platform:- Self-hosted ArgoCD
- Akuity Platform
1
Get connection details
Ensure ArgoCD is running and accessible. Get your host IP address:
2
Generate an API token
Enable the
apiKey capability and generate a token for the admin account:3
Add the connection in CloudThinker
Navigate to Connections → ArgoCD and enter:
- Base URL:
https://<host-ip>:8888 - API Token: token from the previous step
- TLS Verification: Disable
- Read-only Mode: Enable
Connection details
Required permissions
Apply the following RBAC policy in ArgoCD to grant CloudThinker read-only access:Agent capabilities
Once connected, Kai can investigate and act on your ArgoCD applications.Verify the connection
Example prompts
Troubleshooting
Cannot connect to ArgoCD server
Cannot connect to ArgoCD server
For self-hosted instances, use the host IP address (not
localhost) in the Base URL. If the server is behind a port-forward, run kubectl port-forward svc/argocd-server -n argocd 8888:443 --address 0.0.0.0. Check firewall rules if the host remains unreachable.Cannot generate API token
Cannot generate API token
The
apiKey capability is not enabled for the account. Run argocd account get to inspect the account’s capabilities, then enable apiKey and retry.TLS certificate errors
TLS certificate errors
For self-hosted instances, disable TLS verification in the connection settings (equivalent to the
--insecure CLI flag). For Akuity, TLS verification should remain enabled.Security
- Least privilege — grant only the permissions the agents need for your use case; start read-only and widen later.
- Read-only by default — use read-only credentials unless you want agents to make changes through this connection.
- Rotate credentials — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
- Revoke on offboarding — remove the credential at the provider when you delete a connection or a teammate leaves.
- Read-only RBAC — apply the
role:cloudthinker-readonlypolicy inargocd-rbac-cmand enable read-only mode in the connection to prevent unsanctioned writes. - Token rotation — rotate the ArgoCD API token periodically and update it in CloudThinker.
Related
Kai Agent
Kubernetes and GitOps agent
Kubernetes Connection
Connect Kubernetes clusters