Keys & Tokens
Profile › KEYS & TOKENS holds the credentials that let you and your tools reach CodeNOW as you. A secret is shown only once, right after you create it. Removing a key or token cuts off whatever uses it.
Which credential to use
| You want to… | Use | Card |
|---|---|---|
| Clone, fetch and push repositories over HTTPS, optionally call the GitLab API | HTTPS token | Git access › HTTPS tokens |
| Clone, fetch and push repositories over SSH | SSH key | Git access › SSH keys |
| Call the CodeNOW API, CLI or MCP server | API key | CodeNOW API keys |
| Download and publish packages (Maven, npm, Docker, …) in CodeNOW artifact repositories | Artifact repository token | Artifact repository tokens |
| Connect to your vibe coding sessions over SSH | Vibe coding session SSH key | Vibe coding session SSH key |
Git accepts only an HTTPS token or an SSH key from the Git access card. An API key is refused by Git.
For a CI pipeline or script, don't use your own credentials — create them on a service account instead: see Clone repositories as a service account.
Git access
Credentials for the Git hosted in CodeNOW. They have the same repository access you have in CodeNOW. The card's description names your installation's Git host. The card has two tabs, each with the number of active credentials:
| HTTPS tokens | SSH keys | |
|---|---|---|
| What it is | A secret generated by CodeNOW, used as the password over HTTPS | The public part of a key pair you own |
| Access | Read or Read & write, optionally Read API / Full API for the GitLab API | Repository access only |
| Expiry | Required — at most 365 days by default | None |
| Good for | Scripts, tools, networks that allow only HTTPS, GitLab API access | Your workstation's Git client |
One of the tabs is marked Default and comes first — your account's default clone protocol. It is set per account by CodeNOW (HTTPS unless configured otherwise); both protocols work either way.
HTTPS tokens
Click Create token on the HTTPS tokens tab. In the Create HTTPS token drawer:
| Field | Description |
|---|---|
| Name | So you recognise it later, for example laptop or build server. Up to 100 characters, unique (ignoring case) among your active tokens. |
| Repository access | Read — clone and fetch. Read & write — also push branches and tags. |
| GitLab API (optional) | Read API — read-only GitLab API. Full API — includes Read API; it can change project settings, members and CI variables wherever you have Maintainer access, and can create further tokens. Choose it only if a tool needs it. |
| Expires | 30 days, 90 days (default), 365 days or Custom date. Required. At most 365 days by default (an installation may set a lower maximum). The token stops working at 00:00 UTC on the expiry date. |
After Create token, the HTTPS token created dialog shows the token once — copy it before you close the dialog. How to use it shows a clone command and a credential-helper example for scripts and CI.
To clone, copy the repository's address from its Clone dialog, then paste a token as the password; any username works. In scripts, keep the token in an environment variable and pass it through a credential helper — never put a token in the URL:
git -c credential.helper='!f() { echo username=git; echo "password=$GIT_TOKEN"; }; f' \
clone https://<your-git-host>/<group>/<repo>.git
<your-git-host> is the Git server of your installation — the Clone dialog shows the real address.
The list shows Status, Name, Scopes, Created, Expires (UTC) and Last used (reported by GitLab; it can lag by a few minutes). From 14 days before expiry a token is marked Expires soon with <date> · in N days. Revoke cuts off anything that uses the token immediately. Show revoked tokens (N) lists revoked tokens when there are any. Only tokens created in CodeNOW are listed.
SSH keys
Click Add SSH key on the SSH keys tab, give the key a Name (for example MacBook) and paste the Public key — the public part only (the .pub file, typically starting with ssh-ed25519 or ssh-rsa). Your own SSH keys don't expire. A key can belong to one GitLab user only; a key that is already in use is refused with already used by another GitLab user.
Copy the repository's SSH address from its Clone dialog; Git uses the key that matches one listed here. If the key isn't your default one, Using a key that isn't your default one? shows the ~/.ssh/config entry to add.
The list shows Name, Fingerprint and Added; Delete removes the key.
CodeNOW API keys
Personal API keys for calling the CodeNOW API, CLI and MCP server as you. API keys don't work for Git.
Use Create API key: give it a Name and choose Expires — 30 days, 90 days (default), 365 days, Custom date or No expiry. The key stops working at 00:00 UTC on the expiry date. The API key created dialog shows the key once — copy it before you choose Done.
| Column | Description |
|---|---|
| Status | Active, suspended or expired |
| Name | Key label |
| Created | When the key was created |
| Expires (UTC) | The expiry date (Never if the key does not expire). From 14 days before expiry the key is marked with a warning icon and <date> · in N days; afterwards it shows expired. |
| Last used | When the key was last used, recorded by CodeNOW; it can lag by up to 5 minutes. Use from before recording started isn't shown, so an older key may say Never. |
Keys created before expiry was aligned to 00:00 UTC keep their original expiry time, which may be the end of the day (for example 22:59:59 UTC).
Actions per row: Suspend — temporarily disable the key (Resume reverses it); Delete — removes the key for good (deleted keys are not kept). On a service account the list also shows Created by.
Artifact repository tokens
Tokens for downloading and publishing packages in CodeNOW hosted artifact repositories as you, from your machine or build tool. The card is shown only when your installation uses CodeNOW artifact repository identities.
| Column | Description |
|---|---|
| Name | Token label |
| Created | When the token was generated |
| Expires | Token expiration date |
Use Create token to create a new artifact repository token; Delete removes it.
Vibe coding session SSH key
One public key for connecting to your vibe coding sessions over SSH. It isn't used for Git. Only one key at a time: Add SSH key is disabled once a key exists — delete it to add another.