Skip to content
Draft, pre-release documentation

Signing in and handing over

Two kinds of sign-in come up with an agent in your workspace. The first is the agent’s own, with its model provider. The second is a service the agent needs on the desktop, such as a website or an application with an account. A CAPTCHA, a multi-factor prompt or a licence screen is handled the same way as the second kind: the agent hands the desktop to you.

If the workspace supplies credentials for the agent, such as an API key, there is nothing to do and the agent starts signed in. Otherwise the status line reads Sign-in required and Messaging shows a card headed Sign in to Claude Code (or the agent’s name).

  1. Press Open sign-in terminal. A terminal window opens on the desktop with the agent’s sign-in.
  2. Follow the steps in the terminal and in the browser it opens.
  3. When sign-in completes, the sign-in terminal closes and the status line changes to Idle.

If the card says “Complete sign-in in the terminal”, the agent has started and is waiting at the same screen. The terminal button in the header, Open Terminal, brings that window back to the front.

A persistent profile keeps the agent’s sign-in for the next session. Without one, you sign in again each time. Choosing an agent says what each agent signs in with.

If the agent reports that its credential was rejected after it had been working, open its terminal and sign in there again.

When the agent asks you to sign in to a service

Section titled “When the agent asks you to sign in to a service”

A task that needs an account the workspace isn’t signed in to follows the same steps each time.

  1. The agent checks the session first. If access already works, it doesn’t ask you to sign in again.
  2. It opens the service’s own sign-in page in the workspace browser, or the application’s sign-in screen, and tells you which tab or window is ready.
  3. It asks in Messaging. The card names the service and the reason and says the agent will carry on once access is ready.
  4. You sign in on the desktop, in the page or window the agent opened. Enter your username, password and any multi-factor code or CAPTCHA there. Don’t type them into Messaging, and the agent won’t ask for them in a message.
  5. When you have finished, press Done on the card. If you can’t or won’t, press Not done.
  6. The agent checks that it can reach what the task needs. A signed-in avatar isn’t enough. The agent confirms it can do what the task needs, such as editing a particular document or opening a particular page.

The agent leaves the desktop alone while it waits. The question has no deadline in a Kasm session, so you can take as long as you need. Pressing Not done closes the question and the agent stops and waits for your next message. If it already has partial results, it reports them.

If the sign-in fails, the agent describes what the page shows and suggests the next step. It doesn’t work around the sign-in, use a different account or report the task as done with outputs missing.

A CAPTCHA, a licence agreement, a consent prompt or a purchase confirmation belongs to you in the same way. The agent is told to stop at these, ask you to take over, and carry on after you press Done, and not to solve or accept them itself.

The agent keeps its progress and asks again for that service, as above. Check the account before you press Done. A persistent profile may keep sign-ins from earlier sessions, so the account on the desktop may not be the one you expect. Use the profile that holds the accounts you want the agent to use.