Skip to main content

Accounts

Below, we will cover account creation with Defang, and how resources are organized within a cloud environment using your account info.

Defang requires an account so we can organize your resources and provide you with a way to manage them. We also use your account to authenticate you when you interact with Defang Playground and the Defang Portal. Billing and payment information is also associated with your account.

Creating an Account

To create an account, log in to Defang and accept the Terms of Service using the CLI.

At the moment, the only way to authenticate with Defang is through GitHub. We plan to offer other authentication providers in the future.

tip

Keep in mind that your Defang account is separate from your cloud provider account. You will need to authenticate with your cloud provider account separately to deploy services to your own cloud account.

Structure

Your GitHub username will be used as your Defang username. Your Defang username is used to group all your services and generate domains for your services with the following structure:

<username>-<servicename>--<port>.prod1.defang.dev

For more about domain structures, see our Domains page.