Settings that connect MLStudio to other systems

Most connections are saved from App Settings (/settings/) or the Settings API and stored in the application database. Passwords and keys can be stored encrypted. The Configuration page lists every key and default.

Private network guard. To protect the server from being pointed at internal addresses, calls to localhost and private network hosts are refused with a message such as Local/private hosts are blocked for security. To allow a connection to such a host, set the matching environment variable to 1, true, yes or on: IDENTITY_SERVER_ALLOW_PRIVATE_NETWORK, COMMUNITY_ALLOW_PRIVATE_NETWORK, AISERVER_ALLOW_PRIVATE_NETWORK (MLServer client), HOST_ADMIN_ALLOW_PRIVATE_NETWORK, SMTP_ALLOW_PRIVATE_NETWORK or DATABASE_ALLOW_PRIVATE_NETWORK.

Beep AI Server (Host Admin)

Settings: host_admin_url (default http://127.0.0.1:5000) and host_admin_api_key (stored encrypted). The routes /api/v1/ml-server/status, /api/v1/ml-server/models and /api/v1/ml-server/predict talk to it. The status check calls its /api/v1/health and expects status ok, then reads /api/v1/ml-models/env/status. Model listing uses /api/v1/ml-models.

Beep AI MLServer

MLServer hosts published model bundles for prediction. It has its own page: Beep AI MLServer. In MLStudio set ml_server_url and ml_server_api_key.

The code default for ml_server_url is http://127.0.0.1:6000, but MLServer listens on port 5008 by default. Set ml_server_url to the address of your MLServer.

Community and competitions

Set COMMUNITY_URL (default http://127.0.0.1:5002) and COMMUNITY_API_KEY, or use App Settings, where the routes /settings/community/configure, /settings/community/test and /settings/community/disconnect manage the connection. The settings keys are community_url, community_api_key and community_connected.

The Competitions menu opens /competitions/. A competition page is /competitions/<id> and its data can be downloaded from /competitions/<id>/download-data.

Route under /api/v1/communityWhat it does
GET competitionsList. Parameter active_only.
GET competitions/<id>Details.
GET competitions/<id>/statsStatistics.
POST competitions/<id>/joinJoin. Needs sign in. Creates a local project. You can join a competition once.
GET leaderboardParameter limit, default 100.
GET training-data, POST training-data/saveFetch or save competition training data.
POST submit-bundleNeeds sign in. Body includes experiment_id. The experiment needs its scoring script.
GET submissions, GET submissions/<id>Your submissions.
GET community/users/rankings, community/users/stats, community/users/by-username/<name>User rankings and statistics.

The Community server reports scores back through POST /api/v1/experiments/<id>/scoring-result (see Experiments).

Identity Server

Choose the identity_server sign in mode in the setup wizard, or set the variables below before the first start.

VariableMeaning
AUTH_MODElocal (default) or identity_server.
IDENTITY_SERVER_URLAddress of the Identity Server.
IDENTITY_SERVER_CLIENT_IDClient id registered for MLStudio.
IDENTITY_SERVER_CLIENT_SECRETClient secret. Keep it out of files you share.

Credential vault

The vault stores secrets that workflow nodes need, such as database logins and API keys. A node refers to a secret by its credential_id, so the secret never sits in the workflow file. Values are encrypted.

RouteWhat it does
GET /api/v1/credentialsList. Only safe fields are returned.
POST /api/v1/credentialsCreate. Body name, cred_type, data, description.
PUT or DELETE /api/v1/credentials/<id>Change or remove.
POST /api/v1/credentials/<id>/testTest the credential.

Credential types: api_key, bearer, basic_auth, api_key_header, database, aws, smtp, slack, teams and custom.

Kaggle

See the Datasets and files page. Credentials come from the administrator's database settings first, then from KAGGLE_USERNAME and KAGGLE_API_KEY.

Database and health

RouteWhat it does
GET /api/v1/database/statusDatabase status.
POST /api/v1/database/migrateRun the schema migration.
GET /api/v1/healthReturns success, status healthy and embedded_python_available.