Passer au contenu principal
Continue a Claude Code or Codex session in Base Code. Base Code lets you work on a GitHub project in the cloud using AI. You might start working on a project locally, in Claude Code or Codex, and want to continue in Base Code. Use this command to import that session, so you can maintain context across different development environments. You can also import a session from the start screen in Base Code, without running this command. You can import a session from:
  • claude.ai
  • Your current session in Claude Code or Codex.
  • A session file on your computer
Before you import, make sure you have a Base Code project and sign in with an account that has edit access to the project.

Usage

If you don’t pass a session link, --current, or --file, the command lists the Claude Code and Codex sessions in your current folder which you can choose from.
The command doesn’t support non-interactive flags. When using a script, or with --json you must pass a session link, --current, or --file.
The command uploads the session to Base Code:
  • The first time you import a session, Base Code creates a branch for it, or continues on the session’s own branch if you pushed it to GitHub.
  • If you import the same session again, the command adds only the new messages to that branch.
You can import the same session again as long as the AI in Base Code has finished its work on the branch and the earlier messages haven’t changed. To learn more about import errors, see Common errors.
The command prints how many messages it imported and a link to the branch in Base Code.

Arguments

Flags

Common errors

You may encounter the following errors:

See also

  • link: Link a local project to a Base44 project
  • login: Sign in to Base44