Setup and accounts
First run wizard, sign in, API keys and administration.
First run
On a new installation the home page / sends you to the setup wizard at /setup until setup is complete. Setup counts as complete when the database file exists and at least one administrator account exists. The wizard keeps its state in instance/setup_complete.json.
Start the application with one of the launchers (run.bat, run.sh, run.command or python run_mlstudio.py), then open http://127.0.0.1:5001 in a browser. See the Deployment page for launch options.
Wizard steps
- Create the administrator. The user name needs at least 3 characters, the email must contain an at sign, the password needs at least 8 characters, and the confirmation must match.
- Choose the database. Supported types are sqlite, postgresql, mysql and mssql. Default ports are 5432 for PostgreSQL, 3306 for MySQL and 1433 for SQL Server. SQL Server uses ODBC Driver 17. The wizard can test the connection before saving.
- Choose the sign in mode: local, or identity_server. For identity_server you must enter the Identity Server URL, and the wizard can test it.
- Complete the setup.
The wizard routes are /setup/status, /setup/supported-databases, /setup/create-admin, /setup/configure-database, /setup/test-database, /setup/configure-auth, /setup/test-identity-server and /setup/complete.
Signing in and registering
| Action | Route | Notes |
|---|---|---|
| Sign in | POST /auth/api/login | Body fields username_or_email, password, remember. Limited to 5 requests per minute. Sets a session. |
| Register | POST /auth/api/register | User name at least 3 characters, email contains an at sign, password at least 8 characters. Limited to 3 per minute. Returns 201. |
| Sign out | GET /auth/api/logout | Ends the session. |
In identity_server mode the application also accepts an Identity Server bearer token. The settings for that mode are on the Connecting to other systems page.
How a request is authenticated
Where a handler needs a user, the application resolves the caller in this order: the signed in browser session, an Identity Server bearer token (only in identity_server mode), an X-API-Key header, then a JWT.
API keys
Open your profile to manage keys, or call the routes directly.
| Action | Route | Notes |
|---|---|---|
| List keys | GET /profile/api/keys | |
| Create a key | POST /profile/api/keys/generate | Body field key_name. The key value is shown once. Copy it then. |
| Delete a key | DELETE /profile/api/keys/<id> |
curl -H "X-API-Key: <your-key>" http://127.0.0.1:5001/api/v1/projects
Administration
| Menu entry | Route | What it does |
|---|---|---|
| Admin | /admin/dashboard | Administration home. |
| Users | /admin/users | List users, toggle administrator, toggle active, delete. |
| App Settings | /settings/ | Application settings, user environments and the Community connection. |
| Security | /admin/settings | Tabs for email, MFA, SSO, CAPTCHA and security values. |
| Dataset marketplace | /admin/settings/dataset-marketplace/ | Kaggle credentials, a connection test, and the encryption key status. |
The values stored on the Security page (SMTP, MFA code expiry, CAPTCHA, session timeout, login attempt limits, password rules, SSO provider fields) are saved in the database. In the code, nothing outside the settings service and its templates reads them, so changing them does not currently change sign in or password behaviour. Only the SMTP host is checked, against the private network guard described on the Configuration page.
The top navigation
Home, Projects, Experiments, Competitions, FAQ, Documentation, Tutorials, a link to the industry mode page, and the user menu (My Profile, environment manager, Admin Panel, App Settings, Logout).