# Contents

Remember the last time you had to juggle between your work and personal Git accounts? Or that moment when you needed to switch between different client repositories but got stuck in an authentication loop? We've all been there, and it's not fun.

Today, we're thrilled to announce a new feature that solves these headaches: multi-account Git provider support in Daytona. No more logging in and out, no more authentication confusion, and definitely no more "wrong account" commits.

Work With Multiple Git Accounts, Seamlessly

Many developers manage multiple Git accounts - perhaps one for work, another for personal projects, or separate accounts for different clients. Now Daytona lets you configure multiple accounts for the same Git provider, switching between them effortlessly.

Key Features

  • Multiple Tokens: Add several authentication tokens for a single Git provider

  • Easy Identification: Assign aliases to each configuration for quick recognition

  • Smart Selection: Automatic token selection based on repository access

  • Manual Control: Override automatic selection when needed

How It Works

Assuming you possess three GitHub accounts, you need to execute the command daytona git-provider add github for each of them. Once you run the command, an interactive prompt will guide you to configure the provider for each respective account.

daytona git-provider add
daytona git-provider add

Daytona intelligently handles authentication:

  1. When accessing a repository, it automatically tries available tokens

  2. The first successful token is used for the project

  3. You can override this by specifying --git-provider-config

Real-World Applications

  • Manage separate work and personal GitHub accounts

  • Handle multiple client GitLab instances

  • Switch between different organization accounts seamlessly

Update to the latest version of Daytona to start using multiple Git accounts. Check our documentation for configuration details.

Tomorrow brings another exciting announcement - see you then!

Tags::
  • launch-week
  • day-2
  • oss