Skip to content

Override settings for one project

Make one repository use different Mistral settings than your machine-wide defaults — for example, a project agent id or a project region. You need this when a repo’s workflow requires its own configuration.

  • The pi-mistral-native package installed
  • The project must be trusted in pi (pi loads the project file only for trusted projects)
  1. Write the key to the project scope from inside the project directory:

    /mistral set --project agentId my-agent

    The write goes to <cwd>/.pi/mistral-native.json. Without --project the write targets your user scope instead.

  2. Verify the change:

    /mistral

    The key shows its new value with project file provenance.

  3. Commit the file, so every contributor of the repository sees the same override in review.

See How configuration layers work · Config file locations and precedence · /mistral commands