Account activation and login
There are only two account sources: the hosted edition requires a beta application and approval before activation, while a self-hosted deployment creates accounts through the administrator or self-registration.
| Account source | Created by | Entry point |
|---|---|---|
| Hosted edition | Activated by the operations team after review | Apply for beta in the website login page footer |
| Self-hosted | Initial administrator, accounts created by the administrator, and self-registration | Self-hosted console |
1. Hosted edition: apply for beta access first
The hosted edition is operated by Grape, so users do not install the service. The hosted edition does not allow self-registration: the registration page opens, but only an email that has passed the beta review and entered the allowlist can complete registration and sign in. For any other email, Send verification code returns "this email is outside the allowed registration scope".
Application steps
- Open the Grape website (
www.grapedev.cn). - Click Apply for beta in the login page footer.
- Choose the platform (GitCode or GitHub), enter the username and email, click Send verification code, and enter the code you receive. The phone number is optional; pick your identity (Student, Enterprise, OPC, or Other) and describe why you want access.
- Click Submit application and wait for the operations team to review it.
- After approval you receive an activation notice. Open the registration page with the email you applied with and set a username and password, or sign in with the activated account.
After approval you set up the account on the registration page; its field requirements follow the page prompts:
| Field | Requirement |
|---|---|
| Username | 3–32 characters; letters, digits, and underscores only |
| The address used in the beta application that has passed review | |
| Password | At least 8 characters, including letters and digits; common weak passwords are rejected |
| Password confirmation | Must match the password |
Review status
| Stage | Handled by | Account status |
|---|---|---|
| Beta application submitted | User | Not activated; neither registration nor sign-in is available |
| Application under review | Operations team | Under review |
| Approved | Operations team | Email enters the allowlist; registration and sign-in become available |
| Rejected | Operations team | Registration stays closed |
After submitting the beta application, wait for the operations team to complete the review. Registration and sign-in are not available before approval. The review result and notification method are defined by the official operations guidance.
If you sign in through GitCode or GitHub, a third-party account that has not been approved cannot create an account on its own; only accounts that passed the beta review and were linked can sign in.
Hosted edition login
After approval, sign in with the username and password you set during registration. If the website provides an OAuth entry, you can also sign in with a linked GitCode or GitHub account that has been approved.
2. Self-hosted: create accounts, enable registration, and sign in
A self-hosted deployment supports account registration and does not create regular users in bulk during installation. Accounts come from three sources: the initial administrator, accounts created by the administrator, and self-registration. Self-registration is enabled by default and can be disabled by an administrator.
1. Initial administrator account
On first startup, Grape creates a separate administrator account:
| Item | Description |
|---|---|
| Username | admin |
| Password | Determined by the GRAPE_ADMIN_PASSWORD environment variable at deployment time; the default is admin123 when it is not set |
| Permissions | Administrative access; not equivalent to a regular OAuth user |
| First login | Change the password immediately after signing in |
Production environments must set a strong password through GRAPE_ADMIN_PASSWORD before the first startup; do not expose a service that still uses the default initial password.
2. Regular member accounts
After signing in as an administrator, you can create regular member accounts in two ways:
| Method | Action | Prerequisite |
|---|---|---|
| Administrator creates the account | Admin → User management → User list → Create user | The administrator is signed in |
| Self-registration | The user clicks Sign up on the login page and creates an account | The registration policy is not disabled (enabled by default) |
Self-registration is enabled by default in self-hosted deployments, so the Sign up entry appears on the login page. An administrator can disable self-registration in the Registration policy area of the admin console, or configure a registration allowlist to allow only specific email addresses or domains.
The first person to sign in through OAuth does not become an administrator; that person is a regular member.
adminis always a separate administrator account.
3. Self-hosted login
- Open the console address of the deployment.
- The administrator signs in as
adminwith theGRAPE_ADMIN_PASSWORDset at deployment time; ifGRAPE_ADMIN_PASSWORDis not set, the password is the defaultadmin123, so change it immediately after signing in. - Regular members sign in with the username and password created by the administrator, or through a configured OAuth entry.
- After signing in, confirm that the target repository name appears at the top.
If the login page does not show GitCode, GitHub, or Gitee buttons, third-party login has not been configured. See Configure third-party login (optional). Local accounts are not affected.
If the login page footer shows Apply for beta · Admin console, note that the beta application targets the hosted service and is not needed in a self-hosted deployment; Admin console opens the operations console and requires administrator rights. For a self-hosted deployment, signing in with a local account is all you need.
4. Boundaries of self-registration
The self-hosted registration switch and the OAuth login allowlist are independent settings:
- The registration switch controls whether the login page shows a Sign up entry. Once disabled, accounts can only be created by an administrator.
- The registration allowlist controls which email addresses or domains can register. A non-empty allowlist takes precedence over the switch, and only listed addresses are allowed.
- The OAuth login allowlist controls which GitCode or GitHub users can sign in.
With the registration switch on and no allowlist, any email address can register; once an allowlist is configured, only listed addresses or domains are allowed. The login allowlist is a separate setting: it decides which GitCode or GitHub users can sign in and does not restrict registration.
3. Post-login checks
After a successful login, the console header should show owner/repo, and the left navigation should include Issue Center, Project scenes, Pipeline, and Agent Runtime.
If the header does not show a repository name, first confirm that the current account is authorized to access the target repository.
4. Acceptance criteria
- [ ] A hosted edition user has submitted a beta application, passed review, and can register or sign in with the approved email.
- [ ] A self-hosted environment has set
GRAPE_ADMIN_PASSWORDand created the administrator account. - [ ] A regular member has been created by the administrator or has registered through the registration policy.
- [ ] The target repository is visible after login.
- [ ] If third-party login is required, the corresponding login channel is configured.
Related documentation
Installation and startup | Configure third-party login (optional) | Security baseline and engine scheduling

