tyk

command module
v1.9.2-0...-3a4f1fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

README

tyk-github-header FOSSA Status

GitHub Latest Release GitHub Release Date Docker Pulls GitHub Workflow Status (with event) Go Report Card

GitHub commit activity GitHub Repo Stars GitHub Repo Forks X twitter Follow


Documentation | Forum | Blog | About

Tyk API Gateway

Tyk Gateway is the cloud-native, open source, enterprise-ready API Gateway supporting REST, GraphQL, TCP and gRPC protocols.

Built from the ground up, as the fastest API Gateway on the planet since 2014.

Tyk Gateway is provided ‘Batteries-included’, with no feature lockout. Enabling your organization to rate limit, auth, gather analytics, apply microservice patterns and more with ease.

Tyk runs natively on Kubernetes, if you prefer, thanks to the Tyk Kubernetes Operator


Everything you need to manage APIs. Follow the simple Get Started guide below 👇

The Enterprise API Management platform: Management Control Plane, Dashboard GUI & Developer Portal.
Install Tyk Self Managed

The Enterprise API Management platform SaaS: Management Control Plane, Dashboard GUI & Developer Portal.
Deploy Tyk Cloud

Get Started

We’ll install Tyk, add auth, analytics, quotas and rate limiting to your API in under 5 minutes.

We recommend Tyk Gateway Docker as the quickest way to get started now. Later, you can move to one of our other supported distributions if you prefer.

Step 1 - Clone the docker-compose repository
git clone https://github.com/TykTechnologies/tyk-gateway-docker
Step 2 - Change to the new directory
cd tyk-gateway-docker
Step 3 - Deploy Tyk Gateway and Redis
docker-compose up

You can run this in detach mode using the -d flag: docker-compose up -d

Congratulations, you’re done!

Your Tyk Gateway is now configured and ready to use. Confirm this by checking against the ‘hello’ endpoint:

curl localhost:8080/hello

Output:

{"status": "pass", "version": "v3.2.1", "description": "Tyk GW"}

Next, visit adding your first API to Tyk and follow the Open Source instructions.


Other Installations are available:

  1. Docker
  2. Kubernetes-Native
  3. Kubernetes-Helm
  4. Ansible
  5. Red Hat
  6. Ubuntu
  7. CentOS
  8. Compile Tyk from Source

Open Source API Gateway Features

Use any protocol: REST, SOAP, GraphQL, gRPC, and TCP.

Industry Standard Authentication: OIDC, JWT, bearer Tokens, Basic Auth, Client Certificates and more.

Open API Standards: Import your Swagger and OpenAPI Documents (OAS 2.X and OAS 3.0.1) to scaffold APIs in Tyk.

Ultra performant: Low latency, and thousands of rps with just a single CPU, horizontally and vertically scalable.

Content mediation: Transform all the things, from request or response headers to converting between SOAP and GraphQL.

Extensible Plugin Architecture: Customize Tyk’s middleware chain by writing plugins in your language of choice - from Python to Javascript to Go, or any language which supports gRPC.

Rate Limiting & Quotas: Protect your upstreams from becoming overloaded and/or apply limits for each consumer.

API Versioning - API Versions can be easily set and sunset (deprecated) at a specific time and date.

Granular Access Control - Grant access to one or more APIs on a per version and operation basis.

Blocklist/Allowlist/Ignore endpoint access - Enforce strict security models on a version-by-version basis to your access points.

Analytics logging - Record detailed usage data on who is using your APIs (raw data only)

CORS - Enable CORS for certain APIs so users can make browser-based requests

Webhooks - Trigger webhooks against events such as Quota Violations and Authentication failures

IP AllowListing - Block access to non-trusted IP addresses for more secure interactions

Hitless reloads - Tyk configurations can be altered dynamically and the service restarted without affecting any active request

Kubernetes native declarative API: using Open Source Tyk Operator (more info in OSS section) OpenSourceAPIGateway-Diagram

Tyk Technologies uses the same API Gateway for all it’s applications. Protecting, securing, and processing APIs for thousands of organizations and businesses around the world. Ideal for Open Banking, building software in the clouds as well as exposing APIs to teams, partners & consumers.

Tyk OSS Integrations

Tyk Technologies maintains other Open Source Software which can be used in conjunction with Tyk API Gateway:

Tyk Pump - Pluggable analytics purger to move Analytics generated by your Tyk nodes to any back-end.

Tyk Operator - Brings API Management capabilities to Kubernetes. Configure Ingress, APIs, Security Policies, Authentication, Authorization, Mediation and more - all using Custom Resources and Kubernetes Native primitives

Tyk Identity Broker - Tyk Authentication Proxy for third-party login

Tyk Sync - Command line tool and library to manage and synchronise a Tyk installation with your version control system (VCS).

Tyk Mserv - Asset Server and gRPC host

Documentation

All the documentation for Tyk Gateway and other OSS-related topics can be found at https://tyk.io/docs/tyk-oss-gateway/

Community

Licensing

Tyk is dual-licensed:

  1. Open Source License: The code in the root directory and all subdirectories except the 'ee' folder is released under the MPL v2.0. Please see LICENSE for the full version of the open source license.

  2. Commercial License: The code in the 'ee' folder is subject to a commercial license. For more information about obtaining a commercial license, please contact our sales team at sales@tyk.io.

Compiling Tyk Gateway

Compile from Source

git clone https://github.com/TykTechnologies/tyk
go build

Go version 1.22 is required to build master, the current development version. Tyk is officially supported on Linux/amd64, Linux/i386 and Linux/arm64.

To run tests locally use the following command:

go test ./...

Note that tests require Redis to be running on the same machine (default port).

To write your own test please use this guide https://github.com/TykTechnologies/tyk/blob/master/TESTING.md

Contributing

For more information about contributing PRs and issues, see CONTRIBUTING.md.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mcp
oas
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
ci
cli
common
ee
Tyk Gateway API
Tyk Gateway API
integration
internal
agentprotocol
Package agentprotocol provides utilities for agent protocol handling (MCP, A2A, etc.).
Package agentprotocol provides utilities for agent protocol handling (MCP, A2A, etc.).
certcheck
Package certcheck is a generated GoMock package.
Package certcheck is a generated GoMock package.
graphengine/gomock_reflect_3503306920 command
Code generated by MockGen.
Code generated by MockGen.
graphql
Package graphql is a generated GoMock package.
Package graphql is a generated GoMock package.
iamtest
Package iamtest provides hermetic test helpers for exercising the GCP IAM credentials provider offline.
Package iamtest provides hermetic test helpers for exercising the GCP IAM credentials provider offline.
jsonrpc
Package jsonrpc provides utilities for JSON-RPC 2.0 protocol handling.
Package jsonrpc provides utilities for JSON-RPC 2.0 protocol handling.
mcp
Package mcp provides utilities for MCP (Model Context Protocol) handling.
Package mcp provides utilities for MCP (Model Context Protocol) handling.
mcp/adapter
Package adapter contains the pure (gateway-agnostic) building blocks of the REST-as-MCP adapter: tool-argument expansion into an http.Request, and the size-capped response recorder used to wrap the looped REST response as an MCP `result.content[]` envelope.
Package adapter contains the pure (gateway-agnostic) building blocks of the REST-as-MCP adapter: tool-argument expansion into an http.Request, and the size-capped response recorder used to wrap the looped REST response as an MCP `result.content[]` envelope.
mcp/pairing
Package pairing owns the runtime lookup table that connects REST source APIs, synthetic REST-as-MCP adapters, and the MCP proxy APIs allowed to call them.
Package pairing owns the runtime lookup table that connects REST source APIs, synthetic REST-as-MCP adapters, and the MCP proxy APIs allowed to call them.
model
Package model provides an internal data model for use across the gateway.
Package model provides an internal data model for use across the gateway.
oauth2common
Package oauth2common holds the pure-function helpers used by the gateway-side oauth2 security scheme to read and reason about JWT claims without depending on gateway concrete types.
Package oauth2common holds the pure-function helpers used by the gateway-side oauth2 security scheme to read and reason about JWT claims without depending on gateway concrete types.
policy
Package policy is a generated GoMock package.
Package policy is a generated GoMock package.
redis
The package redis serves as a refactoring aid.
The package redis serves as a refactoring aid.
scheduler
Package scheduler provides a simple job scheduling utility with support for running periodic tasks and graceful shutdown.
Package scheduler provides a simple job scheduling utility with support for running periodic tasks and graceful shutdown.
service
The service package is the service layer base for the gateway.
The service package is the service layer base for the gateway.
lib
pkg
Package regexp wraps Go's standard "regexp" with a process-wide bounded LRU.
Package regexp wraps Go's standard "regexp" with a process-wide bounded LRU.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
goplugins command
tests
streams/scripts command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL