Access Tokens
Create, use and revoke Qualflare project access tokens (qfp_), the API keys of the qf CLI, scripts and MCP agents. New tokens expire after at most 90 days.
Reviewed by Qualflare Team on
Last updated
In Qualflare, an access token is a project-scoped API key for CI, scripts, integrations and AI coding agents over MCP that can't sign in with a browser; a new token starts with qfp_ and expires after 7, 30, 60 or 90 days.
Every token can read the project and upload test results. Only a token created with Allow writes can also create and edit test cases, steps, defects and suite coverage over the API and MCP, and run imports. You can't change this later: create a new token and revoke the old one (or ask a Maintainer or Owner to).
A token never has more access than its creator. Qualflare checks the creator's current project role on every request: reading needs Viewer or higher, and uploading or writing needs Editor or higher. Lowering or removing that role takes effect immediately, and a token stops working if its creator's account is deactivated.
| Where | Project Settings > Access Tokens |
| Scope | One project |
| Format | New tokens start with qfp_ |
| Expiration | 7, 30, 60 or 90 days (default 30) |
| Access | Read & upload, or Read, upload & write with Allow writes |
| Create | Editor+ · project (requires the Editor role or higher in the project) |
| Revoke (in the app) | Maintainer+ · project (requires the Maintainer role or higher in the project) |
| Limit | 20 tokens per project that aren't revoked |
| Used by | CI, scripts and integrations, and MCP clients without sign-in |
Accessing tokens
Go to Project Settings > Access Tokens to manage your project's tokens.
Creating a token
You need the Editor role or higher to create a token.
- Click Create Access Token
- Enter a Name of 3 to 100 characters (e.g., "GitHub Actions", "Local Dev")
- Choose an Expiration: 7, 30, 60 or 90 days (default 30)
- Tick Allow writes only if the token must change data. Uploads don't need it.
- Click Create, and confirm it's you if asked
- Copy the token immediately — it is only shown once after creation


Access tokens are only displayed once at creation. Store it securely in a password manager or as an encrypted CI/CD secret immediately.


A project can have up to 20 tokens that aren't revoked, and expired tokens count until they're revoked. A new project may already have a Default token with Read & upload access that expires after 30 days.
Token fields
| Column | Description |
|---|---|
| Name | The token's name and the start of its value |
| Access | Read & upload, or Read, upload & write with Allow writes |
| Owner | The person who created the token |
| Date Created | Date the token was created |
| Expires | Days left and the date. Expires soon in the last 7 days (except 7-day tokens), then Expired: the token stops working |
Maintainers and Owners see every token in the project. Others see only their own.
Revoking a token
Open the ⋯ menu on the token's row, choose Revoke, then confirm with Revoke token. In the app, only Maintainers and Owners can revoke. For an Editor, Revoke is disabled, even on a token they created, with the note "Ask a maintainer or owner to revoke this token." Revoking is immediate and can't be undone: the CLI, CI pipelines, scripts and agents that use the token stop working. To restore access, create a new token and update it wherever the old one was used.
Qualflare emails a token's creator 7 days before it expires (not for 7-day tokens).
Using tokens with the CLI
Install the CLI first.
On your own machine, qf login signs in through your browser, so you don't need a token; use a token in CI and scripts. To use a token on your machine, add --with-token and paste it at the hidden prompt. Then prefix your commands with the identifier:
qf login myapp --with-token
qf myapp collect results.xmlFor the formats collect uploads, see Upload results with qf collect.
In CI, expose the token secret as the QF_TOKEN environment variable. qf login reads it, and --force replaces an existing identifier without asking:
qf login ci --force
qf ci collect test-results/*.xmlDon't pass the token as an argument: shell history and the process list keep it.
See Authenticate with qf login for details on the identifier model, credentials file location, and available options.
Using tokens with a coding agent
Most agents, such as Claude and Lovable, sign in and need no token. For an agent that can't, the same token connects it to Qualflare over MCP, with no separate key. An agent that creates or edits data needs a token created with Allow writes.
In bash or zsh, run read -rs QF_TOKEN, paste the token and press Enter. Nothing is shown, and the token stays out of your shell history. Then add the server to Claude Code:
claude mcp add --transport http qualflare https://api.qualflare.com/mcp \
--header "Authorization: Bearer $QF_TOKEN"Claude Code stores the header, token included, in its own MCP configuration: treat that file like the token.
See Connect a coding agent for other clients, and MCP server reference for every tool an agent can call.
Connected apps
The Connected apps table below the token list shows the apps that members approved for this project by signing in: Claude, Lovable and other MCP clients, and the Qualflare CLI after qf login. Each row shows who connected the app, whether it has Allow changes, when it was connected and when it last called Qualflare. Editors see the apps they connected; Maintainers and Owners see all of them. The person who connected an app, or a Maintainer or Owner, can click Revoke to end it at once. See Manage and disconnect connected apps.
Why a token stops working
- It expired.
- Someone revoked it.
- Its creator's role was lowered or removed (roles).
- Its creator signed out everywhere, reset their password or locked their account (Account security).
- The workspace turned on a 2FA requirement (Require two-factor authentication) or an SSO requirement (SSO & SCIM).
- Its creator's account was deactivated or deleted.
Requests with such a token get 401 with invalid or expired access token; a creator whose role is too low gets 403 with no project access; a write with a read-only token is refused with the read-only error quoted in MCP server reference. See Troubleshooting.
Security best practices
- Use one token per environment — separate tokens for local dev, staging, and production
- Store in CI secrets — never commit tokens to source code
- Rotate before expiry — when the reminder email or Expires soon appears, create a new token, update your CI secret, then revoke the old one (or ask a Maintainer or Owner to) (Rotate the CI access token)
- Leave Allow writes off — unless the token must change data
- Revoke unused tokens — clean up tokens for tools or environments no longer in use
- Use descriptive names — "GitHub Actions — Production" is clearer than "key1"
To store a token as a CI secret, see CI/CD and the Open Source CI setup.
Related
Qualflare API
The Qualflare REST API at api.qualflare.com/api/v1: authenticate with a project access token, page and sort lists, and find each endpoint and the MCP server.
Upload results with the API
Upload test results to Qualflare over HTTP without qf: POST /api/v1/collect and /collect/ctrf, the JSON body, Idempotency-Key and large attachment uploads.