Initialization
- Run
pureml init
command to setup the puremlconfig.yml file. - Since you want to self-host, enter
Y
in CLI promt asking you whether you want to continue self-hosting or not. - Give the self-hosted backend and frontend url.
If no changes are made to ports or domains (using localhost) then go ahead and click ‘enter’ to use the default values.
Create account
If you’re new to SuperAlign, you’ll need to sign up for an account before you can start using the platform. CLI supports you to signup. You can do this using thepureml
command line utility:
Sign In to continue
If you already have a SuperAlign account, you can log in using below method: Thepureml
command line utility:
Go to
https://app.superalign.ai/auth/sign-in
to sign in through your sign in
credentials.Using API Token
Go to API Token section in user account settings page on SuperAlign UI here (or using your self-hosted URL if any).

While using the SDK after importing use the login function to login using API Token as below:
Usage
You can use your local self-hosted backend in the sdk by using theset_backend
function
Example:
Assuming your backend url is localhost:8080/api
Additional configuration
Frontend environment
Variable | Description | Default Value |
---|---|---|
BACKEND_URL | backend url env to connect frontend | http://localhost:8080/api/ |
Backend environment
There are multiple environment variables that can be configured externally. But the application also depends upon the configuration of the docker image used to build the compose.For backend, Currently only base image is officially supported. There will
be S3, R2, etc. configured images soon which can be used in the compose to
setup object storage or other settings configuration
None
.
Variable | Description | Default Value |
---|---|---|
PORT | port where backend will be deployed | 8080 |
DATABASE | type of database which will be used. Currently supported sqlite3 & postgres | sqlite3 |
DATABASE_URL | url for the database (❗Required if database type is postgres) | |
CGO_ENABLED | whether to use cgo (requires gcc) or pure go | 1 |
PURE_SITE_BASE_URL | frontend url for email redirections |