Bring your Model
In Toolhouse, you can choose what AI model and inference provider you want your agents to use.
Specifying a model gives you more flexibility:
It gives the agent agent advanced reasoning capabilities, or the ability to perform a specific task using a more specialized model.
When used with fast inference providers like Groq, it allows your agent to decrease its latency.
It allows you to use the API Keys of your preferred service.
In Toolhouse, you can specify a model in your th file in this format: @provider/model-name, where model-name is the same model name you will find from your provider. Here are some examples of valid model names:
@groq/llama-3.3-70b-versatile@openai/gpt-4.1-2025-04-14@anthropic/claude-sonnet-4-20250514
Toolhouse supports these providers, and we will add more regularly.
Groq
@groq
OpenAI
@openai
Anthropic
@anthropic
Together.ai
@togetherai
Specifying a model for your agent
Obtain the API Key for the model provider
You will need to obtain an API Key using the developer console of the provider you choose.
Store your API Key in Toolhouse
You need to store the corresponding API key in Toolhouse. Toolhouse provides a secure way to store these keys. To do so, use the th secrets add command.
For more information about storing API keys, refer to Managing secrets.
th secrets set GROQ_API_KEY=your_api_keyth secrets set OPENAI_API_KEY=your_api_keyth secrets set ANTHROPIC_API_KEY=your_api_keyth secrets set TOGETHER_API_KEY=your_api_keySpecify the model in your th file
To use a specific model with your agent, you need to specify it in your th file. The model is defined using a string that includes the provider and the model name.
The format for specifying the model is: @provider/model-name.
For example:
model: @groq/llama-3.3-70b-versatileor
model: @openai/gpt-4o-miniSupported models
This list shows the models supported by Toolhouse. Use the value in Toolhouse model identifier in your th file to reference the model in your configuration.
Groq
meta-llama/llama-4-maverick-17b-128e-instruct
@groq/meta-llama/llama-4-maverick-17b-128e-instructGroq
meta-llama/llama-4-scout-17b-16e-instruct
@groq/meta-llama/llama-4-scout-17b-16e-instructGroq
llama-3.3-70b-versatile
@groq/llama-3.3-70b-versatileGroq
llama-3.1-8b-instant
@groq/llama-3.1-8b-instantGroq
compound-beta
@groq/compound-betaGroq
compound-beta-mini
@groq/compound-beta-miniGroq
qwen/qwen3-32b
@groq/qwen/qwen3-32bOpenAI
gpt-4.1
@openai/gpt-4.1OpenAI
gpt-4.1-mini
@openai/gpt-4.1-miniOpenAI
gpt-4.1-nano
@openai/gpt-4.1-nanoOpenAI
gpt-4o
@openai/gpt-4oOpenAI
gpt-4o-mini
@openai/gpt-4o-miniOpenAI
gpt-4-turbo
@openai/gpt-4-turboOpenAI
gpt-4
@openai/gpt-4OpenAI
o3-mini
@openai/o3-miniOpenAI
o3
@openai/o3OpenAI
o4-mini
@openai/o4-miniOpenAI
o1
@openai/o1OpenAI
o1-mini
@openai/o1-miniAnthropic
claude-opus-4-20250514
@anthropic/claude-opus-4-20250514Anthropic
claude-sonnet-4-20250514
@anthropic/claude-sonnet-4-20250514Anthropic
claude-3-7-sonnet-20250219
@anthropic/claude-3-7-sonnet-20250219Anthropic
claude-3-5-sonnet-20241022
@anthropic/claude-3-5-sonnet-20241022Anthropic
claude-3-5-sonnet-20240620
@anthropic/claude-3-5-sonnet-20240620Anthropic
claude-3-5-haiku-20241022
@anthropic/claude-3-5-haiku-20241022Together.ai
moonshotai/Kimi-K2-Instruct
@togetherai/moonshotai/Kimi-K2-InstructTogether.ai
meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
@togetherai/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8Together.ai
meta-llama/Llama-4-Scout-17B-16E-Instruct
@togetherai/meta-llama/Llama-4-Scout-17B-16E-InstructTogether.ai
meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo
@togetherai/meta-llama/Meta-Llama-3.1-8B-Instruct-TurboTogether.ai
meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo
@togetherai/meta-llama/Meta-Llama-3.1-70B-Instruct-TurboTogether.ai
meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo
@togetherai/meta-llama/Meta-Llama-3.1-405B-Instruct-TurboTogether.ai
meta-llama/Llama-3.3-70B-Instruct-Turbo
@togetherai/meta-llama/Llama-3.3-70B-Instruct-TurboTogether.ai
meta-llama/Llama-3.2-3B-Instruct-Turbo
@togetherai/meta-llama/Llama-3.2-3B-Instruct-TurboTogether.ai
Qwen/Qwen2.5-7B-Instruct-Turbo
@togetherai/Qwen/Qwen2.5-7B-Instruct-TurboTogether.ai
Qwen/Qwen2.5-72B-Instruct-Turbo
@togetherai/Qwen/Qwen2.5-72B-Instruct-TurboTogether.ai
Qwen/Qwen3-235B-A22B-fp8-tput
@togetherai/Qwen/Qwen3-235B-A22B-fp8-tputTogether.ai
deepseek-ai/DeepSeek-V3
@togetherai/deepseek-ai/DeepSeek-V3Together.ai
mistralai/Mistral-Small-24B-Instruct-2501
@togetherai/mistralai/Mistral-Small-24B-Instruct-2501Together.ai
arcee-ai/virtuoso-large
@togetherai/arcee-ai/virtuoso-largeTogether.ai
arcee-ai/virtuoso-medium-v2
@togetherai/arcee-ai/virtuoso-medium-v2Together.ai
arcee-ai/caller
@togetherai/arcee-ai/callerLast updated