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.
  • Locust's AI features are not yet available in the open source version, but please reach out to us if you're interested!

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).