{"id":13504391,"url":"https://github.com/EinStack/glide","last_synced_at":"2025-03-29T21:30:33.092Z","repository":{"id":211191242,"uuid":"728447738","full_name":"EinStack/glide","owner":"EinStack","description":"🐦 A open blazing-fast simple model gateway for rapid development of production GenAI apps","archived":false,"fork":false,"pushed_at":"2024-08-12T19:49:05.000Z","size":3599,"stargazers_count":129,"open_issues_count":68,"forks_count":20,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-11-01T01:33:31.561Z","etag":null,"topics":["ai","gateway","gateway-api","genai","generative-ai","glide","go","llm","llmops","ml","mlops","router"],"latest_commit_sha":null,"homepage":"https://docs.einstack.ai/glide/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EinStack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-07T00:49:46.000Z","updated_at":"2024-10-18T22:16:31.000Z","dependencies_parsed_at":"2023-12-10T22:23:03.119Z","dependency_job_id":"53f66e5e-a411-4582-b5d4-67fc87ef73a7","html_url":"https://github.com/EinStack/glide","commit_stats":null,"previous_names":["modelgateway/glide","einstack/glide"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinStack%2Fglide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinStack%2Fglide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinStack%2Fglide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EinStack%2Fglide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EinStack","download_url":"https://codeload.github.com/EinStack/glide/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249125,"owners_count":20747164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","gateway","gateway-api","genai","generative-ai","glide","go","llm","llmops","ml","mlops","router"],"created_at":"2024-08-01T00:00:36.365Z","updated_at":"2025-03-29T21:30:32.398Z","avatar_url":"https://github.com/EinStack.png","language":"Go","funding_links":[],"categories":["Gateways","LLMOps"],"sub_categories":["Vectors","Observability"],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"docs/logo/glide_no_bgd.png\" width=\"300px\" alt=\"Glide GH Header\" /\u003e\n    \u003ch1\u003eGlide: Cloud-Native LLM Gateway for Seamless LLMOps\u003c/h1\u003e\n    \u003ca href=\"https://codecov.io/github/EinStack/glide\"\u003e\u003cimg src=\"https://codecov.io/github/EinStack/glide/graph/badge.svg?token=F7JT39RHX9\" alt=\"CodeCov\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://discord.gg/pt53Ej7rrc\"\u003e\u003cimg src=\"https://img.shields.io/discord/1181281407813828710\" alt=\"Discord\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://docs.einstack.ai/glide/\"\u003e\u003cimg src=\"https://img.shields.io/badge/build-view-violet%20?style=flat\u0026logo=books\u0026label=docs\u0026link=https%3A%2F%2Fglide.einstack.ai%2F\" alt=\"Glide Docs\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/EinStack/glide/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/EinStack/glide.svg?style=flat-square\u0026color=%233f90c8\" alt=\"License\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://artifacthub.io/packages/helm/einstack/glide\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/einstack\" alt=\"ArtifactHub\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2FEinStack%2Fglide?ref=badge_shield\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2FEinStack%2Fglide.svg?type=shield\" alt=\"FOSSA Status\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n**Glide** is your go-to cloud-native LLM gateway, delivering high-performance LLMOps in a lightweight, all-in-one package.\n\nWe take all problems of managing and communicating with external providers out of your applications,\nso you can dive into tackling your core challenges.\n\n\u003e [!Important]\n\u003e Glide is under active development right now 🛠️\n\u003e \n\u003e Give us a star⭐ to support the project and watch👀 our repositories not to miss any update. Appreciate your interest 🙏\n\nGlide sits between your application and model providers to seamlessly handle various LLMOps tasks like\nmodel failover, caching, key management, etc. \n\n\u003cimg src=\"docs/images/marketecture.svg\" /\u003e\n\nCheck out our [documentation](https://docs.einstack.ai/glide/)!\n\n## Features\n\n- **Unified REST API** across providers. Avoid vendor lock-in and changes in your applications when you swap model providers.\n- **High availability** and **resiliency** when working with external model providers. Automatic **fallbacks** on provider failures, rate limits, transient errors. Smart retries to reduce communication latency.\n- Support **popular LLM providers**.\n- **High performance**. Performance is our priority. We want to keep Glide \"invisible\" for your latency-wise, while providing rich functionality.\n- **Production-ready observability** via OpenTelemetry, emit metrics on models health, allows whitebox monitoring (coming soon)\n- Straightforward and simple maintenance and configuration, centralized API key control \u0026 management \u0026 rotation, etc.\n\n### Large Language Models\n\n| Provider                                                              | Supported Capabilities                    |\n|-----------------------------------------------------------------------|-------------------------------------------|\n| \u003cimg src=\"docs/images/openai.svg\" width=\"18\" /\u003e OpenAI                | ✅ Chat \u003cbr/\u003e ✅ Streaming Chat             |\n| \u003cimg src=\"docs/images/anthropic.svg\" width=\"18\" /\u003e Anthropic          | ✅ Chat\u003cbr/\u003e🏗️ Streaming Chat (coming soon) |\n| \u003cimg src=\"docs/images/azure.svg\" width=\"18\" /\u003e Azure OpenAI           | ✅ Chat\u003cbr/\u003e ✅ Streaming Chat   |\n| \u003cimg src=\"docs/images/aws-icon.png\" width=\"18\" /\u003e AWS Bedrock (Titan) | ✅ Chat                                    |\n| \u003cimg src=\"docs/images/cohere.png\" width=\"18\" /\u003e Cohere                | ✅ Chat\u003cbr/\u003e ✅ Streaming Chat   |\n| \u003cimg src=\"docs/images/bard.svg\" width=\"18\" /\u003e Google Gemini           | 🏗️ Chat (coming soon)                    |\n| \u003cimg src=\"docs/images/octo.png\" width=\"18\" /\u003e OctoML                  | ✅ Chat                                    |\n| \u003cimg src=\"docs/images/ollama.png\" width=\"18\" /\u003e Ollama                | ✅ Chat                                    |\n\n## Get Started\n\n### Installation\n\n\u003e [!Note]\n\u003e Windows users should follow an instruction right from [the demo README file](https://github.com/EinStack/glide-demo) that specifies how to do the steps without the `make` command as Windows doesn't come with it by default.\n\nThe easiest way to deploy Glide is to our [demo repository](https://github.com/EinStack/glide-demo.git) and [docker-compose](https://docs.docker.com/compose/).\n\n### 1. Clone the demo repository\n\n```bash\ngit clone https://github.com/EinStack/glide-demo.git\n```\n\n### 2. Init Configs\n\nThe demo repository comes with a basic config. Additionally, you need to init your secrets by running:\n\n```bash\nmake init # from the demo root\n```\n\nThis will create the `secrets` directory with one `.OPENAI_API_KEY` file that you need to put your key to.\n\n### 3. Start Glide\n\nAfter that, just use docker compose via this command to start your demo environment:\n\n```bash\nmake up\n```\n\n### 4. Sample API Request to `/chat` endpoint\n\nSee [API Reference](https://glide.einstack.ai/api-reference/introduction) for more details.\n\n```json\n{\n \"message\":\n      {\n        \"role\": \"user\",\n        \"content\": \"Where was it played?\"\n      },\n  \"message_history\": [\n      {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n      {\"role\": \"user\", \"content\": \"Who won the world series in 2020?\"},\n      {\"role\": \"assistant\", \"content\": \"The Los Angeles Dodgers won the World Series in 2020.\"}\n    ]\n}\n```\n\n### API Docs\n\nFinally, Glide comes with OpenAPI documentation that is accessible via http://127.0.0.1:9099/v1/swagger\n\nThat's it 🙌\n\nUse [our documentation](https://docs.einstack.ai/glide/) to further learn about Glide capabilities and configs.\n\n---\n\nOther ways to install Glide are available:\n\n### Homebrew (MacOS)\n\n```bash\nbrew tap einstack/tap\nbrew install einstack/tap/glide\n```\n\n### Snapcraft (Linux)\n\n[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/glide)\n\n```bash\nsnap install glide\n```\n\nTo upgrade the already installed package, you just need to run:\n\n```bash\nsnap refresh glide\n```\n\nDetailed instruction on Snapcraft installation for different Linux distos:\n\n- [Arch](https://snapcraft.io/install/glide/arch)\n- [CentOS](https://snapcraft.io/install/glide/centos)\n- [Debian](https://snapcraft.io/install/glide/debian)\n- [elementaryOS](https://snapcraft.io/install/glide/elementary)\n- [Fedora](https://snapcraft.io/install/glide/fedora)\n- [KDE Neon](https://snapcraft.io/install/glide/kde-neon)\n- [Kubuntu](https://snapcraft.io/install/glide/kubuntu)\n- [Manjaro](https://snapcraft.io/install/glide/manjaro)\n- [Pop! OS](https://snapcraft.io/install/glide/pop)\n- [openSUSE](https://snapcraft.io/install/glide/opensuse)\n- [RHEL](https://snapcraft.io/install/glide/rhel)\n- [Ubuntu](https://snapcraft.io/install/glide/ubuntu)\n- [Raspberry Pi](https://snapcraft.io/install/glide/raspbian)\n\n### Docker Images\n\nGlide provides official images in our [GHCR](https://github.com/EinStack/glide/pkgs/container/glide) \u0026 [DockerHub](https://hub.docker.com/u/einstack  ):\n\n- Alpine 3.19:\n```bash\ndocker pull ghcr.io/einstack/glide:latest-alpine \n```\n\n- Ubuntu 22.04 LTS:\n```bash\ndocker pull ghcr.io/einstack/glide:latest-ubuntu\n```\n\n- Google Distroless (non-root)\n```bash\ndocker pull ghcr.io/einstack/glide:latest-distroless\n```\n\n- RedHat UBI 8.9 Micro\n```bash\ndocker pull ghcr.io/einstack/glide:latest-redhat\n```\n\n### Helm Chart\n\nAdd the EinStack repository:\n\n```bash\nhelm repo add einstack https://einstack.github.io/charts\nhelm repo update\n```\n\nBefore installing the Helm chart, you need to create a Kubernetes secret with your API keys like:\n\n```bash\nkubectl create secret generic api-keys --from-literal=OPENAI_API_KEY=sk-abcdXYZ\n```\n\nThen, you need to create a custom values.yaml file to override the secret name like:\n\n```yaml\n# save as custom.values.yaml, for example\nglide:\n    apiKeySecret: \"api-keys\"\n```\n\nFinally, you should be able to install Glide's chart via:\n\n```\nhelm upgrade glide-gateway einstack/glide --values custom.values.yaml --install\n```\n\n## SDKs\n\nTo let you work with Glide's API with ease, we are going to provide you with SDKs that fits your tech stack:\n\n- Python (coming soon)\n- NodeJS (coming soon)\n\n## Core Concepts\n\n### Routers\n\nRouters are a core functionality of Glide. Think of routers as a group of models with some predefined logic. For example, the resilience router allows a user to define a set of backup models should the initial model fail. Another example, would be to leverage the least-latency router to make latency sensitive LLM calls in the most efficient manner.\n\nDetailed info on routers can be found [here](https://docs.einstack.ai/glide/docs/routers).\n\n#### Available Routers\n\n| Router      | Description  |\n|---------------|-----------------|\n| Priority        | When the target model fails the request is sent to the secondary model. The entire service instance keeps track of the number of failures for a specific model reducing latency upon model failure  |\n| Least Latency        | This router selects the model with the lowest average latency over time. If the least latency model becomes unhealthy, it will pick the second the best, etc.  |\n| Round Robin        | Split traffic equally among specified models. Great for A/B testing.  |\n| Weighted Round Robin | Split traffic based on weights. For example, 70% of traffic to Model A and 30% of traffic to Model B.  |\n\n## Community\n\n- Join [Discord](https://discord.gg/pt53Ej7rrc) for real-time discussion\n\nOpen [an issue](https://github.com/EinStack/glide/issues) or start [a discussion](https://github.com/EinStack/glide/discussions) \nif there is a feature or an enhancement you'd like to see in Glide.\n\n## Contribute\n\n- Maintainers\n    \n    - [Roman Hlushko](https://github.com/roma-glushko), Software Engineer, Distributed Systems \u0026 MLOps\n    - [Max Krueger](https://github.com/mkrueger12), Data \u0026 ML Engineer\n\nThanks everyone for already put their effort to make Glide better and more feature-rich: \n\n\u003ca href=\"https://github.com/EinStack/glide/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=modelgateway/glide\" /\u003e\n\u003c/a\u003e\n\n## License\n\nApache 2.0\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FEinStack%2Fglide.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FEinStack%2Fglide?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEinStack%2Fglide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEinStack%2Fglide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEinStack%2Fglide/lists"}