Mind Lab Toolkit (MinT)
Configure MinT

Environment Variables

The MinT client SDK supports a set of environment variables for configuring the endpoint and authentication. The list below corresponds strictly to the variables the SDK explicitly supports.

Connection and authentication

VariableDescriptionExample
MINT_API_KEYEnterprise API key, starts with sk-.sk-your-api-key-here
MINT_BASE_URLMinT endpoint, keep the trailing /.https://mint.macaron.xin/ or https://mint-cn.macaron.xin/
TINKER_API_KEYtinker-compatible entry point (import mint as tinker). Usually set to $MINT_API_KEY.$MINT_API_KEY
TINKER_BASE_URLSame as above, tinker-compatible. Usually set to $MINT_BASE_URL.$MINT_BASE_URL

Default base model

VariableDescriptionExample
MINT_BASE_MODELScripts that support this variable (e.g. Cookbook) read it as the base model.Qwen/Qwen3-4B-Instruct-2507

Automatic .env loading

A .env file in the project root is loaded automatically, which makes it easy to share config within a team. The .env file uses the same variable names as above. Be sure to add .env to your .gitignore.

Mainland endpoint

It is stated explicitly: "For the Chinese mainland region, use the mint-cn endpoint":

export MINT_BASE_URL=https://mint-cn.macaron.xin/

Common symptoms of misconfiguration

If _require_api_key throws an error or the preflight times out, check:

  • Whether MINT_API_KEY and MINT_BASE_URL are exported correctly.
  • Whether the endpoint mint.macaron.xin / mint-cn.macaron.xin (or your enterprise tenant endpoint) is reachable.

Note

This page lists only the variables the SDK explicitly defines. The SDK has other optional variables internally, but they are used only in special cases. Confirm with your technical contact before enabling them, to avoid relying on undocumented behavior.

On this page