
Mock HTTP APIs
with real-world behavior
Mokksy is a mock Streaming HTTP and SSE server for deterministic Java and Kotlin integration testing. Test streaming APIs, retries, timeouts, and failure paths through real HTTP behavior. Testing AI providers? Use AI-Mocks, built on Mokksy.
Choose a product
Choose the testing layer you need
Mokksy is the core HTTP and SSE mock server. AI-Mocks adds provider-compatible AI testing on top of Mokksy.
Mokksy
Mock any HTTP or SSE dependency with controlled responses, streaming chunks, delays, failures, uploads, and request verification.
π¦ Start with Mokksy βAI-Mocks
Test OpenAI, Anthropic, Gemini, Ollama, and A2A clients with provider-compatible behavior and no real API calls.
π€ Start with AI-Mocks βWhy it matters
Catch failures before production
Unit tests donβt cover timeouts, retries, or streaming behavior. Mokksy lets you test real HTTP interactions β including slow responses, partial streams, and hanging streams β in a deterministic way.
Why Mokksy
Test real HTTP behavior
with confidence
Mock streaming APIs, slow responses, retries, partial failures, and connection-sensitive clients in repeatable Kotlin and Java integration tests.
True SSE and Streaming
Native Server-Sent Events and chunked response streams with controllable timing between chunks.
Request Matching
Match paths, headers, request bodies, multipart uploads, and typed payloads with a fluent Java API and Kotlin DSL.
Failure Simulation
Model slow responses, retry-after headers, rate limits, malformed payloads, hanging streams, and timeout paths.
Deterministic CI Tests
Run integration tests locally and in CI without depending on external service availability or network stability.
Framework Friendly
Use Mokksy with Spring Boot, Quarkus, Ktor, JVM SDK clients, and any HTTP client that accepts a base URL.
AI-Mocks Layer
Add provider-specific OpenAI, Anthropic, Gemini, Ollama, and A2A mocks when the dependency is an AI API.
Integration paths