Prerequisites
- A CircleCI account with access to the organization and projects you want to investigate.
- A Personal API Token.
- For the approval-gated controls, the token’s user needs trigger/pipeline permission on the target project.
Read-only analysis works with a standard Personal API Token. The approval-gated controls additionally require the token’s user to have trigger permission on the target project.
Setup
Create a Personal API Token
In CircleCI, go to your user avatar → User Settings → Personal API Tokens (app.circleci.com/settings/user/tokens) and click Create New Token:
- Token name:
cloudthinker - Expiry date: choose a lifetime and plan to rotate
Add Connection in CloudThinker
Navigate to Connections → CircleCI and enter:
- Token: the Personal API Token you just created
- Base URL:
https://circleci.comfor CircleCI cloud, or your install URL for self-hosted Server or Standalone
Connection Details
| Field | Description | Example |
|---|---|---|
| CIRCLECI_TOKEN | Personal API Token used to authenticate the connection | — |
| CIRCLECI_BASE_URL | https://circleci.com for cloud, or your Server or Standalone install URL | https://circleci.com |
CloudThinker resolves your organization and followed projects from the token, so no manual org or project ID configuration is required on CircleCI cloud.
Required Permissions
The Personal API Token inherits the access of the user who created it. Read operations work with any token whose user can see the target projects. The control operations additionally require the token’s user to have trigger/pipeline permission on the project and explicit approval in CloudThinker.Agent Capabilities
Once connected, agents have read access to your CircleCI projects, pipelines, and logs.| Capability | Description |
|---|---|
| Project Discovery | List followed projects and resolve the active organization |
| Pipeline Status | Inspect the latest pipeline status for a project |
| Workflows & Jobs | Review workflows and their jobs for a pipeline |
| Build & Test Logs | Fetch build and test output for failure triage |
| Pipeline Controls | Run pipelines, rerun workflows, run evaluation tests, roll back deployments, and create prompt templates — requires approval |
Verify the Connection
Example Prompts
For organizations with many projects, scope requests to a single project so the agent returns focused results.
Troubleshooting
401 or 403 Unauthorized
401 or 403 Unauthorized
Connection tests but no projects appear
Connection tests but no projects appear
The token’s user follows no projects, or the resolved organization is wrong. Follow at least one project in CircleCI, then re-run discovery.
Control actions fail with a permission error
Control actions fail with a permission error
The token lacks trigger/pipeline permission on the project. Regenerate the token under a user who has trigger rights on that project and reconnect.
Usage data or component versions return nothing
Usage data or component versions return nothing
The usage API is paid-plan only, and component versions are Server or Standalone only. Confirm your plan tier — these are tier-gated, not a configuration error.
Self-hosted server returns 404 or auth errors
Self-hosted server returns 404 or auth errors
CIRCLECI_BASE_URL is still set to
https://circleci.com. Set it to your Server or Standalone install URL and reconnect.Rollback action did not run
Rollback action did not run
Rolling back a deployment is production-destructive, approval-gated, and available only on Server or Standalone — not cloud-only organizations. Approve the action when prompted, and confirm your install supports it.
Security Best Practices
- Least-privilege user - Create the token under a user with only the project access CloudThinker needs
- Approval for controls - Keep pipeline, rerun, rollback, and other write actions approval-gated
- Token rotation - Rotate the Personal API Token regularly
- Correct base URL - Use
https://circleci.comfor cloud, or your install URL for self-hosted Server or Standalone - Revoke when unused - Delete the token in CircleCI if you stop using the connection
Related
Jenkins Connection
Build pipeline monitoring and job analysis
Approval
How approval-gated actions work