Sign in

One Dipole ML Inc. account for DCode, the CLI, the Raven app and your dashboard.

On this page

DCode uses your Dipole ML Inc. account, the same one as the Raven app and your dashboard. Sign-in happens in your browser, and a free account works. Your plan and your usage belong to the account, so they are the same on every computer you sign in on.

In the desktop app

  1. Open DCode and choose Continue with Google, Continue with Apple or Continue with email. Email is for an address that is not a Google or Apple account.
  2. Your browser opens on the sign-in page. Finish signing in there.
  3. If your browser asks to open DCode, allow it. Until then DCode shows Waiting for Dipole ML Inc. authentication...; it carries on by itself, and there is nothing to copy.

Choose Cancel to stop waiting, or Retry login if the sign-in did not finish. When your sign-in expires, DCode says Your session has expired; choose Sign in again.

In the CLI

shell
dcode login
  1. Run dcode login. In the workspace, type /login and choose Sign in with your Dipole ML Inc. account. Your browser opens.
  2. Approve the sign-in in the browser. If the CLI shows a sign-in code, enter it on the approval page.
  3. If your account has two-step sign-in, the terminal asks for the Two-factor code from your authenticator app. Type the 6-digit code.

The terminal says Login successful with your name or email and the model it chose. On a computer without a browser, run dcode login --no-browser and open the printed link on another device.

Two-step codes in the terminal

  • You get three tries. After three wrong codes, run dcode login again.
  • After too many tries in a short time, wait a few minutes before you try again.
  • The code is asked in the terminal, so run dcode login in an interactive terminal, not in a script.

To turn two-step sign-in on or off, see Two-step sign-in.

Sign in with an API key

In the workspace, type /login and choose Use an API key, then paste a key from your dashboard (Create a key). It is hidden while you type. For a single run, such as in CI, set DCODE_API_KEY instead; it is never saved (Sign in on a CI machine).

Sign out

  • Desktop app. Click your avatar at the foot of the sidebar and choose Disconnect. DCode restarts, and sessions that are running stop.
  • CLI. Run dcode logout, or type /logout. It removes the saved sign-in from this computer.