AI Load Testing with ease

Locust Cloud integrates seamlessly with AI Agents

Locust ❤️ AI

  • Because Locust tests are expressed in "plain Python", it is easy to use call any AI library/SDK from your test.
  • Locust Cloud takes this even further with ready-to-use integrations for Anthropic, OpenAI and LangGraph.
  • Here's an example of how to use Locust's OpenAIUser

Example Load Test

Locust's AI load tests can not only call your LLM, but also bypass it and call tools directly. This reduces the cost and focuses on the things that may not be as easy to scale up when there is a surge in traffic. Here's a basic example using Anthropic's Model Context Protocol (MCP).

What's Your AI Use Case?

  • Please reach out to us if you need any assistance! We're especially interested in helping support LLM and MCP initiatives.