Sign in to KARMEN from Koder CLI
Koder CLI 0.6.3 requires a KARMEN account before running the first task. Existing installations without a CLI account session must sign in once after upgrading. Account login is separate from model API keys, mailbox credentials and computer permissions. It does not enable cloud log uploads.
- Open a new terminal and check
koder --version. - Run
koder login. Choose the system browser or QR code with the arrow keys and Enter. Esc cancels. Starting an interactive task also offers sign-in. - Enter your credentials only on https://karmensecurity.com/account. Check the device and confirmation code against the terminal, then approve the CLI.
- Return to the terminal. The CLI polls the server and continues automatically after saving the protected session. No localhost listener, embedded browser or pasted authorization code is used.
- Configure a model with
koder setup, then runkoderand type a task atkoder >.koder activatemanages background residency; it does not open chat.
If the browser already has a KARMEN session, press Enter on the default browser option and confirm device access on the page that opens. koder login --open skips the choice menu and opens the same page. It still checks the confirmation code; it does not read browser cookies or bypass consent. Server-side locking or reauthentication can still require a password.
Chat and Setup display the signed-in account. Setup opens account status first for an existing login. koder account status prints a readable summary; --json retains structured output. A saved refresh grant keeps the account visible when its short-lived access token expires; the task entry point renews and verifies it before execution.
MEMORY_BUSY means another task owns the selected session, not that login failed or RAM is full. Version 0.6.3 isolates implicit default sessions across resident and foreground processes, including an older host left running during an update. Explicitly named sessions still cannot steal a live owner's lease. Keep history and live locks intact.
For a phone, SSH session or unavailable default browser:
koder login --qr --no-open
Scan the code or open the displayed official URL. Links normally expire after ten minutes. Do not share them. Linux browser opening uses xdg-open; manual links remain available. Credentials belong to the machine and OS user running the CLI, not the phone used to approve it.
koder account status --json
koder logout
koder login --reauth
Setup includes an account menu; chat supports /login and /logout. Status never prints tokens and does not prove current server reachability. Logout clears local access before attempting remote revocation; remoteRevoked: false reports an incomplete remote revocation. Use the account website to manage devices. Reauthentication happens on the website, including MFA when required. A different account selected in another window stops the old conversation from continuing across identities; reopen Koder.
Tokens use the existing native credential layer: macOS Keychain, current-user Windows DPAPI or Linux Secret Service. account-session.json contains only non-secret concurrency state. Linux needs an unlocked Secret Service and secret-tool (usually libsecret-tools on Ubuntu). An unavailable protected store returns LOGIN_STORAGE_UNAVAILABLE; no plaintext fallback is written. Do not share a data directory between OS users.
Headless tasks without a session return exit 2 and LOGIN_REQUIRED before invoking a model. They never wait indefinitely for terminal input. Establish the protected session separately with koder login --qr --no-open under the same OS user before starting CI. Account verification needs a network connection; this release does not provide offline authorization or service-token import. --yes grants neither account access nor OS credential permissions.
Recovery codes: LOGIN_EXPIRED and LOGIN_DENIED require a new authorization transaction; LOGIN_LOCKED requires --reauth; LOGIN_NETWORK and LOGIN_SERVICE_UNAVAILABLE indicate account-service connectivity, not an invalid model key. LOGIN_CLAIM_UNCONFIRMED and LOGIN_REFRESH_REQUIRED require a new login because a token exchange cannot be safely replayed. LOGIN_STORAGE_INVALID requires logout and login. LOGIN_CHANGED requires reopening the CLI. LOGIN_PROTOCOL_INVALID rejects mismatched identity or protocol responses without saving tokens.
The separate shared-memory server login remains available through koder account memory ...; it does not satisfy first-party account login or silently enable shared memory.
Validation includes isolated HTTP registration, email verification, device consent, token claim/refresh, a CLI task and revocation using synthetic accounts and a credential adapter. Public discovery was checked with the actual CLI HTTPS transport. Human phone approval and native credential storage/browser combinations on each OS remain separate beta checks. See the Chinese walkthrough and the release acceptance record.