Choose models

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

  1. Set model on the agent as provider/model. Leave it out to use the project's default:
    agents/support.ts
    import { 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.",});
  2. Start the project with npm run dev.
  3. Open Chat in Studio.
  4. Pick Support assistant.
  5. 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

  1. Create a project

  2. Set the agent's model

  3. Start it

  4. Ask it

Try it out

Next steps