{"id":35871227,"url":"https://github.com/neuraltrust/trustgate","last_synced_at":"2026-03-09T11:02:48.361Z","repository":{"id":271979054,"uuid":"896899340","full_name":"NeuralTrust/TrustGate","owner":"NeuralTrust","description":"A powerful, AI Gateway designed from scratch for AI","archived":false,"fork":false,"pushed_at":"2026-01-15T09:54:50.000Z","size":49473,"stargazers_count":49,"open_issues_count":7,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-16T09:49:31.091Z","etag":null,"topics":["ai","ai-gateway","api-gateway","gateway","golang","multi-provider"],"latest_commit_sha":null,"homepage":"https://docs.neuraltrust.ai","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NeuralTrust.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-01T15:24:41.000Z","updated_at":"2026-01-15T15:42:59.000Z","dependencies_parsed_at":"2026-01-14T12:03:28.797Z","dependency_job_id":null,"html_url":"https://github.com/NeuralTrust/TrustGate","commit_stats":null,"previous_names":["neuraltrust/ai-gateway-ce","neuraltrust/trustgate"],"tags_count":175,"template":false,"template_full_name":null,"purl":"pkg:github/NeuralTrust/TrustGate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralTrust%2FTrustGate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralTrust%2FTrustGate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralTrust%2FTrustGate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralTrust%2FTrustGate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeuralTrust","download_url":"https://codeload.github.com/NeuralTrust/TrustGate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralTrust%2FTrustGate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T14:45:23.139Z","status":"ssl_error","status_checked_at":"2026-01-20T14:44:16.929Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-gateway","api-gateway","gateway","golang","multi-provider"],"created_at":"2026-01-08T15:18:48.291Z","updated_at":"2026-01-20T16:01:04.736Z","avatar_url":"https://github.com/NeuralTrust.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TrustGate\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"assets/ai-gateway.svg\" alt=\"AI Gateway Logo\" width=\"100%\"/\u003e\n\n*A powerful, AI Gateway designed from scratch for AI*\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/NeuralTrust/TrustGate.svg)](https://pkg.go.dev/github.com/NeuralTrust/TrustGate@v0.1.0)\n[![Go Report Card](https://goreportcard.com/badge/github.com/NeuralTrust/TrustGate)](https://goreportcard.com/report/github.com/NeuralTrust/TrustGate)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![Docker Pulls](https://img.shields.io/docker/pulls/neuraltrust/trustgate.svg)](https://hub.docker.com/r/neuraltrust/trustgate)\n[![GitHub Actions](https://github.com/NeuralTrust/TrustGate/actions/workflows/ci.yml/badge.svg)](https://github.com/NeuralTrust/TrustGate/actions/workflows/ci.yml)\n[![GitHub Actions](https://github.com/NeuralTrust/TrustGate/actions/workflows/security.yml/badge.svg)](https://github.com/NeuralTrust/TrustGate/actions/workflows/security.yml)\n\n\n[Documentation](https://docs.neuraltrust.ai) |\n[Quick Start](https://docs.neuraltrust.ai/trustgate/getting-started/hello-gateway) |\n[Community](https://join.slack.com/t/neuraltrustcommunity/shared_invite/zt-2xl47cag6-_HFNpltIULnA3wh4R6AqBg)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- 🚀 **High Performance**: Built in Go for maximum efficiency and minimal latency\n- 🌍 **Multi-Provider**: Multiple LLM provider support\n- 🤖 **AI-Ready**: Optimized for AI model providers (OpenAI, Anthropic, etc.)\n- 🔄 **Fallback Ready**: Built-in model fallback capabilities\n- 🔄 **Load Balancing**: Advanced algorithms including round-robin, weighted round-robin, and IP hash\n- 🔒 **Security**: Built-in authentication, rate limiting, and token management\n- 🔌 **Plugin System**: Extensible architecture for custom functionality\n- ⚡ **Real-time Config**: Dynamic configuration without restarts\n- ☁️ **Cloud Agnostic**: Deploy anywhere with cloud-agnostic architecture\n\n\n## 🚀 Quick Start\n\n### Using Docker Compose\n\n```bash\n# Clone the repository\ngit clone https://github.com/NeuralTrust/TrustGate.git\ncd TrustGate\n\n# Clone env\ncp .env.example .env\n\n# Start the services\ndocker compose -f docker-compose.prod.yaml up -d\n```\n\n### Using Kubernetes\n\n```bash\nComing soon\n```\n\n### Local Development\n\n```bash\n# Start dependencies\ndocker compose up -d redis postgres\n\n# Run the servers\n./scripts/run_local.sh\n```\n\n### Run Unit Tests\n\n```\nmake test\n```\n\n### Run Functional Tests\n\n```\nmake test-functional\n```\n\n## 🏗️ Architecture\n\nTrustGate consists of two main components:\n\n1. **Admin API** (Port 8080)\n   - Gateway management\n   - Configuration management\n   - API key management\n   - Plugin configuration\n\n2. **Proxy API** (Port 8081)\n   - Request routing\n   - Load balancing\n   - Plugin execution\n\n## 📊 Monitoring\n\nTrustGate provides comprehensive monitoring through Prometheus metrics:\n\n```yaml\n# config.yaml\nmetrics:\n  enabled: true                # Enable metrics collection\n  enable_latency: true        # Basic latency metrics\n  enable_upstream: true       # Upstream latency tracking\n  enable_connections: true    # Connection tracking\n  enable_per_route: true     # Per-route metrics\n```\n\n### Key Metrics\n- `trustgate_requests_total` - Request counts by gateway, method, and status\n- `trustgate_latency_ms` - Overall request processing time\n- `trustgate_detailed_latency_ms` - Granular latency by service/route\n- `trustgate_upstream_latency_ms` - Upstream service latency\n- `trustgate_connections` - Active connection tracking\n\n### Prometheus Configuration\n```yaml\nscrape_configs:\n  - job_name: 'trustgate'\n    static_configs:\n      - targets: ['localhost:9090']\n```\n\nFor detailed metrics documentation, dashboards, and advanced queries, see our [Monitoring Guide](https://docs.neuraltrust.ai/trustgate/observability/metrics).\n\n## 🤝 Contributing\n\nWe love contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Open a Pull Request\n\n## 📜 License\n\nTrustGate is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n## 🌟 Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=NeuralTrust/TrustGate\u0026type=Date)](https://star-history.com/#NeuralTrust/TrustGate\u0026Date)\n\n## 📫 Community \u0026 Support\n\n- [Documentation](https://docs.neuraltrust.ai)\n- [Slack Community](https://join.slack.com/t/neuraltrustcommunity/shared_invite/zt-2xl47cag6-_HFNpltIULnA3wh4R6AqBg)\n- [GitHub Issues](https://github.com/NeuralTrust/TrustGate/issues)\n- [Twitter](https://twitter.com/neuraltrust)\n- [Blog](https://neuraltrust.ai/en/resources/blog)\n\n\n\u003cdiv align=\"center\"\u003e\nMade with ❤️ by \u003ca href=\"https://neuraltrust.ai\"\u003eNeuralTrust\u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuraltrust%2Ftrustgate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneuraltrust%2Ftrustgate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneuraltrust%2Ftrustgate/lists"}