Skip to main content

Models

Factory uses language models to investigate issues, plan changes, write code, and review pull requests. Connect a provider, then choose a model your account can use. Model access depends on your provider account.

Connect a provider​

Before saving provider credentials, configure stored credential encryption on the server.

In onboarding, select a supported provider sign-in flow or supply an API key. For later changes, open Settings → Models and use the provider access controls. Complete sign-in in the provider's browser flow and return to Factory.

Choose the credential scope and model​

ScopeWho can use it
PersonalThe user who saved or connected the credential. Teammates need their own access unless an organization credential covers them.
OrganizationUsers covered by the organization's configured provider access. Only authorized administrators can manage organization credentials.

Choose the default model for tasks on your Factory's boards. When checking a run, confirm that its session uses the expected model and that the provider is connected.

To use a custom endpoint, add its URL and credentials in the custom provider settings. Store credentials in Factory's credential settings or on the server. Don't include them in issues or repository instruction files.

Choose model routing for chats and runs​

Factory routes two kinds of work:

  • Chats you start in the web app or Slack.
  • Work-item runs Factory starts from GitHub, GitLab, Linear, Jira, and incident.io.

Open Settings → Models → Model routing to choose a scope. The scope sends each kind of work to either Personal defaults or Factory defaults:

ScopeChatsWork-item runs
PersonalPersonal defaultsPersonal defaults
HybridPersonal defaultsFactory defaults
FactoryFactory defaultsFactory defaults

Personal defaults is the default model you choose for yourself. Factory defaults is the model set for the Factory, using its organization credentials, so everyone who works in that Factory uses it. New Factories start on Hybrid routing.

A routing change applies to new chats and runs. Running threads keep the model they already use. Open the model picker in a session's status line to change that session's model, or choose Reset to your default to return to the routed default.