A CodeAnt token authenticates to CodeAnt, not to your Git provider. It always starts with the prefix
cdt_ and is scoped to a single provider + organization.Create a token
- Open CodeAnt AI and go to Settings → API tokens.
- Click Create token.
- Check the Bound to chip — it shows the provider and organization the token will belong to. Tokens are scoped to the workspace you’re currently in, so switch workspaces first if you need a token for a different organization.
- Give the token a descriptive name (for example
ci-coverageorautomation-token). Names can be up to 60 characters. - Click Create token.
- Copy the token immediately. It starts with
cdt_and is shown only once — for security, the full value is never displayed again. Store it in your secret manager or CI secret store. CodeAnt only keeps the last 4 characters for identification.
Use a token
CI pipelines Add the token to your pipeline as a secret, then pass it as the access-token input of the CodeAnt coverage, scan, or quality-gate step. See: REST API Send the token as a bearer token in theAuthorization header:
Manage and revoke tokens
Settings → API tokens lists every token for the current workspace, each showing a masked value (cdt_••••last4), the provider and organization it’s bound to, when it was created, and whether it’s Active or Revoked.
To revoke a token, hover over it and click the trash icon, then confirm Delete token. Revocation is immediate and irreversible — any client still using that token loses access right away.