User Settings

Every user has a personal settings page to manage their code review experience: change their password, choose a colour theme, manage their API token, and configure two-factor authentication. Click your username in the top navigation bar to open it.

Overview

The profile page lives at /profile. It is accessible to every logged-in user — no admin rights required. It contains four sections:

Change password

Fill in the three fields in the Change Password section and click Save Password:

  1. Current password — required as a security check.
  2. New password — must be at least 6 characters.
  3. Confirm new password — must match the new password exactly.
After a successful password change you remain signed in — there is no need to log in again.

If you have forgotten your password entirely and cannot sign in, ask an administrator to reset it for you via Settings → Users → Edit.

Themes

The Appearance section shows four theme preview cards. Click any card to apply that theme instantly — no page reload required. Your choice is saved in the browser's localStorage and restored automatically on every visit, even after the browser is restarted.

Light
Clean white interface — the default.
Dark
Deep navy — easy on the eyes at night.
Dracula
Purple-pink accents on a dark canvas.
Nord
Arctic blues and greens — calm and cool.

Theme palette reference

ThemeBackgroundAccentGreenRed
Light #f8fafc #2563eb #15803d #dc2626
Dark #0f172a #3b82f6 #4ade80 #f87171
Dracula #282a36 #bd93f9 #50fa7b #ff5555
Nord #2e3440 #81a1c1 #a3be8c #bf616a

Quick-toggle in the nav bar

The sun/moon icon button in the top navigation bar cycles through all four themes in order: Light → Dark → Dracula → Nord → Light. Hovering over it shows a tooltip with the current theme name. You do not need to open the profile page to switch themes.

On first visit, Codeveira checks prefers-color-scheme. If your OS is set to dark mode, the Dark theme is applied automatically until you choose a different one.
All four themes correctly style every part of the diff viewer — including the side-by-side two-column view and character-level word highlights inside modified lines. Colours are applied through CSS classes rather than inline styles, so dark-theme palettes are always respected. In side-by-side view, modified lines show old content on the left with deleted tokens highlighted red, and new content on the right with added tokens highlighted green — only the actually changed words are marked; if a line only has additions the left side appears as plain context, and if it only has deletions the right side is plain. The diff algorithm anchors on the character-level common prefix and suffix first, so long lines with many repeated short tokens (IP ranges, file paths, JSON) always highlight precisely the changed fragment.

API token

The API Token section shows your personal token used to authenticate with the built-in MCP server or the Codeveira REST API from external tools such as Claude Code — enabling AI-assisted code review directly from your editor.

Generating a token

If no token exists yet, click Generate Token. The token is displayed immediately — copy it now.

Copying the token

Click the Copy button next to the token. The button label changes to Copied! for 1.5 seconds to confirm.

Regenerating a token

Click Regenerate Token to invalidate the old token and create a new one. Any existing MCP or API connections using the old token will stop working immediately. Update your MCP configuration with the new token after regenerating.

Treat your API token like a password — do not share it or commit it to version control. If you suspect it has been leaked, regenerate it immediately.

Using the token with Claude Code

Add the following to your .claude/settings.json (or use claude mcp add):

{
  "mcpServers": {
    "codeveira": {
      "type": "http",
      "url": "https://your-codeveira-host/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Replace YOUR_API_TOKEN with the token shown on your profile page, and your-codeveira-host with your actual hostname.

REST API Tokens Standard+

The single API token above is shared by every integration and never expires — fine for personal MCP use, but risky for CI pipelines and third-party tools, since revoking access for one integration means regenerating and re-distributing the token to every other integration too. The REST API Tokens section (below the API Token section, on Standard license or higher) lets you create as many separate, scoped tokens as you need for the REST API specifically.

Each token can be:

The raw token value is shown exactly once, immediately after creation — copy it right away. Codeveira never stores the plaintext, only a one-way cryptographic digest, so it cannot be recovered afterward even by an administrator with database access. Use it the same way as the MCP token above: Authorization: Bearer YOUR_SCOPED_TOKEN.

Revoke any token independently, at any time, from the same section — without affecting your other tokens or your legacy MCP token.

Two-Factor Authentication Standard+

Two-factor authentication (2FA) adds a TOTP verification step after your password login, protecting access to the code review platform. Any authenticator app works — Google Authenticator, Authy, 1Password, Bitwarden, and others.

The 2FA section is only visible on Standard license or higher. If your instance runs on the Free tier, this section does not appear.

Enabling 2FA

  1. Open the Two-Factor Authentication section on your Profile page.
  2. Click Set up 2FA.
  3. Open your authenticator app and scan the QR code, or enter the key shown below it manually.
  4. Type the 6-digit code from the app into the confirmation field and click Enable 2FA.

After enabling, every login will require the 6-digit code in addition to your password.

Disabling 2FA

If 2FA is not enforced by your administrator, a Disable 2FA button appears on the Profile page. Click it (and confirm) to remove 2FA from your account.

If your administrator has enabled the global 2FA requirement, the button is replaced by the message "2FA is required by your administrator and cannot be disabled." Contact your admin if you need to reset your authenticator app.

Lost authenticator access

If you lose access to your authenticator app, contact your Codeveira administrator. They can temporarily disable the global 2FA requirement, allowing you to log in and reconfigure 2FA from your profile with a new device.