Choose the model an agent answers with; without a choice it uses the project's default. The project and the account set which models it can pick.
Before you start
You need an agent. See Create an agent.
Set an agent's model
- Set
modelon the agent asprovider/model. Leave it out to use the project's default:agents/support.tsimport { agent } from "veryfront/agent"; export default agent({ id: "support", name: "Support assistant", model: "anthropic/claude-haiku-4-5-20251001", system: "Answer customer questions about orders and refunds. Keep replies to two sentences.",}); - Start the project with
npm run dev. - Open Chat in Studio.
- Pick Support assistant.
- Ask "Can I get a refund on an order I placed yesterday?". You should now see the agent reply and its page show Configured model
anthropic/claude-haiku-4-5-20251001.
Try it in a sandbox
Create a project
Set the agent's model
Start it
Ask it