Import your codebase
This page covers the steps to import a code repository into Artemis.
Getting started
To start importing a project:
- Go to the
Projectstab on the left panel. - Click the
New Projectbutton on the top right.

Import options
Artemis provides three convenient ways to import your codebase:

Option 1: GitHub App (Recommended)
Connects using GitHub's OAuth app authorization. This method provides broader access to your repositories and is managed through GitHub Apps, offering secure, token-free authentication.
Best for: Teams and individuals who want seamless GitHub integration with automatic repository discovery.
Option 2: Access Token
Uses access keys for authentication. This option supports multiple authentication methods for different Git hosting services:
- GitHub Personal Access Token (PAT)
- Bitbucket API Token
- Bitbucket App Password
- SSH Key
Best for: Private repositories across different Git platforms or when you need fine-grained access control.
Option 3: Upload Archive
Upload your project as a zip file directly from your local device.
Best for: Local projects not hosted on a Git platform or when you want to import a specific snapshot of your code.
Method 1: Import via GitHub App (Recommended)
The GitHub App integration provides the most seamless experience for importing repositories from GitHub.
Steps to import:
-
Select a GitHub account from the dropdown or click
Add GitHub accountto connect a new one.
-
Install the Artemis GitHub App by clicking the
Install GitHub Appbutton. You'll be redirected to GitHub to authorize the app and select which repositories to grant access to. -
Grant repository access to Artemis — you can choose specific repositories or all repositories in your organization.
-
Once connected, your available GitHub repositories will automatically appear in the import form.

-
Select the desired repository from the list and click
Importto import it into Artemis.
Benefits:
- Secure, token-free authentication
- Automatic repository discovery
- Easy management of repository access
- Keeps your project synced for future updates or re-indexing
Method 2: Import via Access Token
Use access tokens to import repositories from various Git hosting services including GitHub, Bitbucket, GitLab, and others.
If you are using a private Git repository, you need to configure an access token to authenticate Artemis. For public repositories, authentication is not required.
Setting up access tokens
Before importing, you need to add an access token. The setup process varies depending on which authentication method you choose:
-
Click
Add access tokenfrom the authentication dropdown in the import form.
-
Select the key type that matches your Git hosting service and authentication preference:
GitHub Personal Access Token (PAT)
The standard token for authenticating with public GitHub.com or GitHub Enterprise.
- Use case: Authenticating with GitHub repositories
- How it works: Token generated from GitHub's developer settings
- Permissions: Can be scoped to specific repository access levels
Bitbucket API Token
Used for authenticating with Bitbucket's REST API, typically for server-to-server integration or automation scripts.
- Use case: Bitbucket server-to-server integration
- How it works: Token for REST API access
- Permissions: Broader API access for automation
Bitbucket App Password
A more user-friendly Bitbucket token for granting specific permissions (like read/write to repos) without using your main account password.
- Use case: Command-line Git operations with Bitbucket
- How it works: More granular permissions without exposing main password
- Permissions: Fine-grained control (read/write to specific repos)
SSH Key
Generate a public/private key pair on your computer and register the public key with your Git hosting service.
- Use case: Any Git service using SSH protocol (GitHub, Bitbucket, GitLab, etc.)
- How it works: Public/private key cryptography
- Permissions: Secure authentication without password-based tokens
-
Provide a name for your token (e.g., "my-github-token") to identify it later.
-
Paste the token value or public key in the token field.
-
Test the connection to verify the credentials work correctly, then click
Save.
For detailed instructions on creating access tokens for different platforms, see Using private code repositories.
Importing the repository
Once your access token is configured:
-
Select your access token from the dropdown list under Git authentication.
-
Enter the Git repository URL (e.g.,
https://github.com/username/repository.git). -
(Optional) Specify a branch name and commit hash if you want to import a specific version.
-
Click
Importto complete the import process.
Method 3: Import via Archive Upload
Upload a local code archive directly to Artemis.
Steps to import:
-
Prepare your code archive: Ensure your project is compressed as a
.zipfile. -
Click the
Upload a zip file with your codebutton to browse and select your local code archive. -
Select your zip file from your computer.
-
Click
Importat the bottom of the page to complete the import.
Currently, only .zip format is supported for archive uploads. Make sure your code is properly compressed before uploading.
Next steps
After successfully importing your codebase:
-
Index your codebase: Go to Indexing your codebase to index your project and make it searchable.
-
Optimize your code: Go to Optimize section to identify targets and optimize them.