Go microservices framework for the cloud-native era
open sourceMITfree
Kratos is a lightweight Go framework for building cloud-native microservices. Services are defined API-first in Protobuf, and its kratos CLI generates HTTP and gRPC code, creates new services from a standard project layout and runs them. It has a unified transport layer for HTTP and gRPC, composable middleware for recovery, logging, validation, tracing, metrics and auth, and pluggable service registry, configuration and encoding components, with optional integrations in a contrib ecosystem. Kratos v3, released in June 2026, cut its core dependencies.
Problems it solves
- build Go microservices that serve both gRPC and HTTP from one Protobuf definition
- a standard project layout and code generator so every Go service in our company looks the same
- plug service discovery, config centres and tracing into my Go services without wiring each one by hand
- generate server and client code for my Go APIs from proto files instead of writing handlers
- add logging, metrics, tracing, auth and validation to every Go service through shared middleware
Features
- API-first development with Protobuf and generated HTTP/gRPC code
- Unified HTTP and gRPC transport layer
- Middleware for recovery, logging, validation, tracing, metrics and auth
- Pluggable registry, configuration and encoding components
- log/slog based logging with OpenTelemetry extensions
- OpenAPI and error code generation
- kratos CLI to create, generate and run services
- Contrib packages for registries, config stores and observability
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what Kratos does.
- go-zero A cloud-native Go microservices framework with a code generation CLI