{"id":23676055,"url":"https://github.com/clowdertech/ollama-token-api","last_synced_at":"2026-05-08T15:04:17.470Z","repository":{"id":270113947,"uuid":"909373103","full_name":"ClowderTech/ollama-token-api","owner":"ClowderTech","description":"Ollama reverse proxy that allows for bearer token authentication.","archived":false,"fork":false,"pushed_at":"2024-12-28T23:33:44.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-19T18:16:31.682Z","etag":null,"topics":["deno","llm","llms","ollama","ollama-api"],"latest_commit_sha":null,"homepage":"https://forgejo.clowdertech.com/clowdertech/ollama-token-api","language":"TypeScript","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/ClowderTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["ClowderTech"]}},"created_at":"2024-12-28T14:06:12.000Z","updated_at":"2024-12-28T15:29:18.000Z","dependencies_parsed_at":"2024-12-28T15:30:06.531Z","dependency_job_id":null,"html_url":"https://github.com/ClowderTech/ollama-token-api","commit_stats":null,"previous_names":["clowdertech/ollama-token-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClowderTech%2Follama-token-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClowderTech%2Follama-token-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClowderTech%2Follama-token-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClowderTech%2Follama-token-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClowderTech","download_url":"https://codeload.github.com/ClowderTech/ollama-token-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708987,"owners_count":19684168,"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":["deno","llm","llms","ollama","ollama-api"],"created_at":"2024-12-29T14:41:20.356Z","updated_at":"2026-05-08T15:04:12.432Z","avatar_url":"https://github.com/ClowderTech.png","language":"TypeScript","funding_links":["https://github.com/sponsors/ClowderTech"],"categories":[],"sub_categories":[],"readme":"# Ollama Token API\n\nThe **ollama-token-api** project aims to add bearer authentication to Ollama,\nallowing users to secure their access without needing different client\nlibraries. It works by validating tokens stored in a MongoDB database and\nreverse proxying requests to the Ollama server using Hono.\n\n## Table of Contents\n\n- [Features](#features)\n- [Installation](#installation)\n  - [Using Docker (Recommended)](#using-docker-recommended)\n  - [Manual Installation](#manual-installation)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\n\n- **Bearer Authorization:** Implement OAuth2 bearer token authentication for\n  Ollama.\n- **MongoDB Token Storage:** Store and retrieve tokens from a MongoDB database.\n- **Honol Reverse Proxying:** Use Hono to reverse proxy requests to the Ollama\n  server.\n- **Highly Customizable:** Configurable via environmental variables or\n  configuration files.\n\n## Installation\n\n### Using Docker (Recommended)\n\nYou can deploy this API using Docker. The official Docker image is available on\nboth GitHub and our private registry.\n\n#### Pulling Docker Image from Public Registry\n\n```sh\ndocker pull ghcr.io/clowdertech/ollama-token-api:latest\n```\n\nOr, for a specific tag:\n\n```sh\ndocker pull ghcr.io/clowdertech/ollama-token-api:\u003ctag\u003e\n```\n\n#### Pulling Docker Image from Private Forgejo Registry\n\nIf you aim to contribute or access the latest development builds, use our\ndedicated registry.\n\n```sh\ndocker pull forgejo.clowdertech.com/clowdertech/ollama-token-api:master\n```\n\n### Manual Installation\n\nTODO: Add detailed installation instructions for manual setup (including setting\nup MongoDB and Hono).\n\n## Usage\n\nOnce installed, start using Ollama Token API by sending requests with\nappropriately authenticated bearer tokens.\n\nFor additional configuration options or advanced usage, please refer to the\nfollowing file:\n\n- [docs/configuration.md](docs/configuration.md)\n\n## Contributing\n\nContributions are highly welcomed! If you wish to contribute to this project,\nplease follow these steps:\n\n1. Fork this repository using Forgejo\n   (https://forgejo.clowdertech.com/clowdertech/ollama-token-api).\n2. Create a new feature branch from `master`.\n3. Commit your changes following standard conventions.\n4. Push the branch to your fork and create a Pull Request.\n\nFor more details on contribution guidelines, see:\n\n- [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\nThis project is licensed under the terms of the **Apache License**. See LICENSE\nfile for full details.\n\n---\n\n_Built with ❤️ by ClowderTech_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclowdertech%2Follama-token-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclowdertech%2Follama-token-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclowdertech%2Follama-token-api/lists"}