mrkeyoor.comAsk

songquanpeng/one-apitested 25 Nov 2026commit 8df4a26

one-api review

Choose One API when centrally managed provider channels, application tokens and quotas justify operating its database and configuration.

  • Safety failed
Failedinstall
    LLM Toolsevaluationupdated 25 Nov 2026
    +29stars / 7d

    One API is a self-hosted gateway for centrally managed model-provider channels, access tokens and quotas. Applications use tokens generated by One API and connect to your instance. Its primary README is Chinese, and an English translation is available.

    Verdict

    Choose One API when centrally managed provider channels, application tokens and quotas justify operating its database and configuration. Skip it when your requirement is a database-free relay accepting provider keys directly. Our November 25, 2026 source installation at commit 8df4a26 failed after 21 seconds with disk-write errors, and the separate Compose safety check failed.

    one-api infographic: connect applications through managed provider channels, plus our test result and who it suits
    Tested 25 November 2026: the source install failed.

    We ran it

    Lab card: what happened when we ran one-api
    Lab card from our sandbox run
    Screenshot of one-api (oneapi.justsong.cn)
    oneapi.justsong.cn
    Install✗ · 21s
    Build—
    Repo564 files~56,037 lines of source · 2.6 MB · 5 CI workflows · Dockerfile

    Answers from our run

    Does one-api build from source?

    The dependency install failed, and the project has no separate build step. We cloned commit 8df4a26 into a clean Debian container with 3 CPUs and no project-specific setup.

    Who should not use one-api?

    Developers requiring a database-free relay with direct provider-key forwarding: issue #1105 requests that design, while the maintainer argues for retaining channels and SQLite.

    What are the alternatives to one-api?

    New API, Portkey AI Gateway, Laisky's One API. Choose One API when centrally managed provider channels, application tokens and quotas justify operating its database and configuration.

    Setup1/5Our source install failed.Editor’s note: Disk-write failures stopped source installation, and the separate Compose safety check stopped before a usable service was established.
    Docs4/5The README has an install section (“部署”) and a usage section (“One API”); we did not run its quickstart ourselves, and the README is mostly in Chinese, not English.Editor’s note: The README documents deployment and configuration, but the November attempt did not complete the instructions through a working request.
    Community4/5Last push on 2026-01-09, 37,481 stars and maintainers answered or closed 10 of the 10 most-discussed issues we sampled.Editor’s note: Historical issues contain maintainer replies and a confirmed streaming repair, without establishing current support capacity or adoption.
    Maturity2/5Latest release v0.6.10 on 2025-02-02 (pre-1.0) and repository created 2023-04-22.Editor’s note: The November attempts produced no completed gateway request or production workload from which to assess operating maturity.

    How we score

    Who it’s for

    Teams that need centrally managed provider channels and separate application tokens.
    Operators who need user quotas, model restrictions and channel groups, and can maintain persistent database state.
    Developers whose clients support a custom OpenAI-compatible base URL.

    Who it’s NOT for

    Developers requiring a database-free relay with direct provider-key forwarding: issue #1105 requests that design, while the maintainer argues for retaining channels and SQLite.
    Applications requiring unsupported fields to survive model mapping unchanged: the README warns that mapping reconstructs requests and can drop fields.
    Operators who want to choose a theme without comparing its configuration forms: issue #912 records historical differences between Berry and the default theme.

    Setup reality

    Our November 25, 2026 source-install attempt at commit 8df4a26 failed with exit 1 after 21 seconds. The log records no space left on device during Go module download and unpacking. The sandbox configuration specified 3 CPUs, 8 GB RAM and image label golang:1.24-bookworm. A separate Compose attempt stopped at a safety check reporting unreadable configuration or no services; teardown was recorded as ok.

    The README documents Docker deployment with persistent storage mounted at /data, the initial root login with password 123456, and provider credentials entered as channels. Applications use a generated One API token and the instance base URL. Multi-server deployment requires shared database and session configuration.

    Short answer: choose it for shared access and quotas

    Choose One API if your team needs centrally managed provider channels, application tokens and quotas; skip it if you require a database-free relay accepting provider keys directly. The README's channel-and-token workflow supports the first requirement. In issue #1105, users requested the second, while the maintainer defended SQLite and retaining channels. Our November 25, 2026 source installation at commit 8df4a26 stopped after 21 seconds with disk-write errors.

    One API separates the credentials an operator configures from the token an application receives. The operator adds provider credentials on the Channels page, creates a token on the Tokens page, and gives the application the instance address. The English usage instructions describe that sequence and say the exact API Base format depends on the client. That is the practical reason to consider this project: distributing access through one administrative service.

    What people use one-api for

    Users report running One API in Docker, connecting applications with generated tokens and managing multiple upstream channels. The issue tracker gives concrete examples of those jobs, including the failures operators encountered along the way. These reports explain how people used the software without turning individual experiences into an adoption count. The four cases below also identify the configuration layer involved: image updates, channel selection, client authentication or model eligibility.

    Who used it What they did What happened
    The reporter of #2000 Enabled automatic Docker image updates Reported roughly 50% CPU usage after an update; the maintainer suspected a leaked image-publishing credential. Docker image incident
    formero009 Configured two channels and disabled them individually Isolated premature stream closure to API2D. After subsequent fixes, the reporter confirmed resolution on May 18, 2023. Streaming investigation
    Ikaros-521 Created channels and generated tokens for Python and a Next frontend Encountered token authentication failures, then an HTML response during endpoint troubleshooting. Client connection report
    CNWann Repeated GPT-4 requests through a custom channel Reported intermittent model_not_found and found a channel with a GPT-3.5 key and no GPT-4 configured. Model eligibility investigation

    The channel-isolation case gives operators a reproducible troubleshooting sequence without requiring a new API example. formero009 disabled one channel, repeated the request, then reversed which channel was enabled. That separated the API2D path from the other configured upstream. The full #83 discussion continues beyond the unsuccessful initial retest: the maintainer published v0.3.1-alpha.1, and the reporter subsequently confirmed that the problem was solved.

    Chinese-language Bilibili listings also describe deployment and integration interests. A title by 一瓶奶油 names OpenAI, Gemini and DeepSeek; 我就是小乖 names Kimi, Zhipu, Qianfan, Mistral and Hunyuan; Carry discusses third-party DeepSeek API aggregation. These Bilibili search results identify tutorial topics and creators. They give readers specific integration terms to search alongside the repository name.

    What happened when we ran it

    Our source installation failed with exit 1 after 21 seconds. The November 25, 2026 measurement at commit 8df4a26 records module downloads and unpacking ending in disk-write failures, including no space left on device. The requested sandbox configuration was 3 CPUs, 8 GB RAM and image label golang:1.24-bookworm. The checkout contained 564 files, approximately 56,037 source lines and 2.6 MB of checked-out content.

    The separate Compose safety check reported unreadable configuration or no services. Its failed safety step takes precedence over the generic deployment description. The run record names the repository's Compose route and ports bound to 127.0.0.1 on November 25, 2026. The attempt ended with teardown recorded as ok.

    Check Recorded answer Verdict Why
    Source installation Exit 1 after 21 seconds Failed Go module writes failed during download and unpacking
    Sandbox configuration 3 CPUs, 8 GB RAM, golang:1.24-bookworm image label Configuration recorded These are the harness configuration values
    Repository scan 564 files, approximately 56,037 source lines, 2.6 MB checkout Scan recorded Checkout size describes repository content
    Automation and deployment files 5 CI workflow files, Dockerfile and Compose file present; no tests directory found Files recorded The scan records file presence
    Separate Compose safety check FAILED; compose config unreadable or has no services Failed The safety step stopped the attempt
    Separate hands-on teardown ok Cleanup recorded The teardown record reports success

    The retained install output names golang.org/x/sys and google.golang.org/grpc during unpacking. It also shows temporary downloads under the Go module cache failing, including golang.org/x/text. The exact error no space left on device appears on writes into the module directory. This gives the setup failure a concrete location and operation: dependency storage, before an application request. The harness records a total duration of 24 seconds, with build and test fields empty.

    Where people get stuck: tokens, streams and model selection

    Generated One API tokens belong at the One API instance, because that server authenticates them. In issue #164, halfu explained why sending such a token directly to OpenAI fails. The reporter had a successful channel test but failed application requests. During further troubleshooting, the reporter received HTTP 200 containing HTML. The response body, as well as its status, therefore matters when identifying what endpoint the client reached.

    Symptom What the report says Troubleshooting step and recorded outcome
    Generated token rejected #164 distinguishes a generated token from an official provider key Point the client at the One API instance. Subsequent troubleshooting produced an HTML response. Endpoint discussion
    Stream returns one character and closes formero009 isolated API2D by disabling channels The first latest-image retest still failed. The maintainer later published v0.3.1-alpha.1, and formero009 confirmed resolution on May 18, 2023. Complete streaming discussion
    Intermittent model_not_found CNWann reported the error on v0.4.3 and investigated a channel without GPT-4 configured Inspect model eligibility, channel credentials and groups; the maintainer requested an abilities-table query. Selection discussion
    Berry cannot configure some providers An April 24, 2024 update names missing configuration for Coze and AWS Claude Compare the default theme's provider form; the maintainer requested contributions. Theme discussion

    A useful first connection keeps those layers visible: one configured channel, one model enabled on that channel, a generated token and the client's instance base URL. The README describes each part, and the issue reports show why collapsing them into a single works-or-fails result loses information. A successful channel test concerns the configured upstream path; the application still has to send the correct token to the correct server and receive an API response.

    Security starts with the default login and the image source

    The README documents the initial username root and password 123456 and tells operators to change the password after first login. The primary README warning makes that an immediate administrative task. Because the server holds provider credentials and issues application access tokens, its administrator account controls more than a dashboard. Record the deployment image and its digest alongside the database and channel configuration when preparing the instance.

    In the historical DockerHub incident, issue #2000, operators reported high CPU use after automatic image updates. finisitineris described a suspicious child process and a connection they identified as a mining pool. The maintainer said they had not pushed the previous day and initially suspected leakage of the credential used by GitHub Actions to publish Docker images. The discussion ties the investigation to image publishing rather than to our installation failure.

    The maintainer reported revoking tokens, resetting the password and enabling two-factor authentication. A commenter suggested a GHCR image, while later comments continued discussing the DockerHub token and affected tags. Keep those actions attributed to the incident discussion. For deployment records, distinguish the registry, tag and digest: a tag names the requested image reference, while a digest identifies the artifact selected for that deployment.

    Chinese is the main documentation language, and themes affect configuration

    The primary README is Chinese, and the English README identifies itself as a ChatGPT translation. Both explain the channel-and-token workflow, while the English README explicitly invites corrections to translation errors. Several troubleshooting discussions cited here are also Chinese. Searching with an issue number, provider name and exact error string gives a more precise starting point than translating only the product description.

    The April 5, 2024 update in issue #912 lists Berry gaps including token model restrictions, token IP restrictions, batch channel-key addition and batch export. The April 24 update names Coze and AWS Claude configuration fields. In the same discussion, MartialBE attributes Berry's GeminiPro behavior to an inherited channel-ID conflict and says the API address must be entered explicitly. These are dated configuration reports tied to a named theme.

    At volume, database choices become part of the gateway

    The README directs higher-concurrency deployments to configure SQL_DSN and requires a shared MySQL database for multiple servers. Its multi-server instructions also require matching SESSION_SECRET values, slave-node configuration and synchronization settings. Redis configuration appears in that deployment design. Operators choosing One API for shared access therefore need to plan persistent state and configuration synchronization along with provider credentials.

    In issue #1105, CloseAPI reported database read/write pressure with request logging enabled. ye4293 replied that the author had discussed later optimization, such as separating databases. The README documents LOG_SQL_DSN for a separate logs database. That option has its own English configuration entry, separate from the commenter's account of a proposed optimization.

    The configuration reference also says memory caching and batch database updates can delay user-quota updates. Its FAQ distinguishes account balance from token quota, so adding account credit does not change the token's separate usage limit. For SQLite, the primary README requires a persistent volume for one-api.db. Its Zeabur instructions likewise warn that omitting SQL_DSN loses data on redeployment. These settings connect access management to the database state that preserves it.

    One-api vs New API, Portkey and Laisky's fork

    The technical review describes New API as a fork to examine for native inbound protocols, weighted routing and newer billing models. Its analysis is pinned to February 2025 code, so the comparison below preserves that attribution. Portkey enters through a community suggestion, while Laisky's fork has its own README describing request-format conversion. Each offers a different reason to investigate a replacement.

    Candidate Why it belongs on the shortlist Evidence
    New API Examine native inbound protocols, routing and billing requirements The pinned technical review identifies these as reasons to consider the fork. Technical comparison
    Portkey-AI/gateway Investigate an alternative mentioned by users seeking a simpler gateway ye4293 suggested it in the pure-gateway discussion. Community recommendation
    Laisky/one-api Examine conversion among Chat Completion, Response and Claude Messages Its README advertises those incoming request formats. Fork README
    vLLM Distinguish hosting inference from aggregating external APIs FindAlternative describes vLLM as an inference and serving engine. Category comparison

    Laisky's README advertises conversion among Chat Completion, Response and Claude Messages. That claim belongs to Laisky/one-api, a separate repository from songquanpeng/one-api. Write down the format your application sends before comparing these projects: an OpenAI-style chat request and a native provider request impose different interface requirements. Repository ownership is part of that comparison because similarly named forks document their own behavior.

    What the other reviews get wrong

    The CSDN beginner tutorial overstates routing and compatibility and uses a Docker mount destination different from the project's example. Its tutorial text, the primary README and the pinned technical review support the corrections below. A separate identity error concerns WhatIsGitHub's page for jrdw0/one-api. Keeping these corrections together makes the disputed claim and its replacement visible without transferring behavior between repositories.

    Page and claim Supported correction
    CSDN describes default round-robin routing and configurable weights The technical review describes random selection within the highest priority tier. Attribute that description to the review; it does not substantiate the tutorial's routing claims. Routing description
    CSDN presents advanced features, including JSON Schema, as universally supported The primary README warns that model mapping reconstructs requests and can drop fields that are not formally supported. Model-mapping warning
    CSDN mounts persistent data at /app/data The project's Docker example mounts the host data directory at /data. Documented Docker mount
    WhatIsGitHub labels its one-api page dormant That page names jrdw0/one-api; its activity label describes that repository. Repository identity

    The mount correction changes what an operator should copy from the tutorial: the documented container destination is /data. The mapping correction changes what a provider checkbox means: listing a provider does not promise that every field survives request reconstruction. For activity, the repository metadata observed on November 25, 2026 records songquanpeng/one-api's last push as January 9, 2026. That date belongs to the target repository, independent of jrdw0/one-api's history.

    FAQ

    One API runs on your infrastructure, and applications connect using tokens generated by that instance. The README usage instructions describe adding upstream credentials as channels before creating client tokens. The questions below cover repository identity, deployment, provider connections and the specific token, routing and database questions found in search intents and issue discussions. They keep the gateway's own authentication separate from the credentials configured upstream.

    What is One API, and where is the official songquanpeng/one-api GitHub repository?

    One API is a self-hosted model API gateway with channel, token and quota management. The official repository is songquanpeng/one-api. Use that owner/name when comparing commits and releases. The similarly named jrdw0 repository and Laisky fork have separate histories, while one-api.ai is a hosted service with its own operator and affiliation statement.

    Is one-api.ai affiliated with the open-source One API project?

    No. one-api.ai's About page explicitly disclaims affiliation with songquanpeng/one-api, Intel oneAPI and model providers. It identifies WakeUp Plus LLC as its operator. A hosted account on that service and a deployment of songquanpeng/one-api are therefore separate choices; the shared name does not establish a project relationship or make their documentation interchangeable.

    Is songquanpeng/one-api still actively maintained?

    The repository metadata observed on November 25, 2026 records a last push on January 9, 2026. The repository listing reports the same date. The technical review describes its February 2025 snapshot as maintenance-focused. These are dated observations about activity and inspected code; the dormant label on WhatIsGitHub belongs to jrdw0/one-api.

    How do I deploy One API and connect OpenAI, Gemini or DeepSeek?

    The README's Docker route mounts persistent data at /data, then uses the management interface to configure provider channels and generate tokens. OpenAI, Gemini and DeepSeek appear in the primary README's provider list. After configuring a channel, set the application's base URL to the instance address and use its generated token. The README says the precise base-URL format depends on the client.

    How do I connect Kimi, Zhipu, Qianfan, Mistral and Hunyuan to One API?

    Configure the selected provider's credentials and models as a channel, then connect the application with a One API token. The primary README lists Moonshot AI, Zhipu, Baidu, Mistral and Hunyuan. A Bilibili tutorial title by 我就是小乖 names Kimi, Zhipu, Qianfan, Mistral and Hunyuan as integration topics. Provider credentials remain distinct from the generated client token.

    Can One API aggregate multiple third-party DeepSeek APIs?

    One API documents multiple channels and third-party proxy endpoints, which supplies the configuration model for aggregating upstreams. The README also documents channel model lists and groups. A Bilibili title by Carry specifically discusses third-party DeepSeek aggregation. Each configured endpoint still needs the credentials and model names appropriate to that channel.

    Why does a generated One API token fail, and which base URL should I use?

    A generated token must reach the One API instance that authenticates it. In #164, halfu explains that distinction, including why the token cannot go directly to OpenAI. The README says API Base formatting depends on the client, and its Chinese OpenAI-library example ends in /v1. Match the client's documented format to the instance address.

    How does One API route requests and retry across channels?

    The technical review describes random channel selection within the highest priority tier. Its February 2025 analysis is the source of that description. The primary README separately lists automatic retry on failure as a feature. Those two statements support describing channel selection and retry availability without adding retry status classes, fallback sequencing or a version-specific weighted-routing implementation claim.

    Can I run One API as a pure gateway without billing, quotas or user management?

    Issue #1105 requests a simpler gateway with those management functions removed. In the discussion, the maintainer discussed disabling billing, defended SQLite and proposed retaining channels. Other participants requested optional authentication, auditing and metering components. The documented channel-and-token workflow remains the concrete configuration path described by the README.

    Can a pure gateway accept provider keys directly without configuring channels?

    popdo requested direct provider-key forwarding without channel setup in issue #1105. The maintainer replied that some channels require more than one key for authentication and proposed keeping channels. That response explains a design constraint behind the management layer. Applications following the README instead use a generated One API token against the configured instance.

    How can I reduce database load caused by request logging?

    LOG_SQL_DSN configures a separate database for the logs table. The English README documents that option for MySQL or PostgreSQL. In #1105, CloseAPI reported logging-related database pressure, and ye4293 relayed the author's discussion of later optimization such as database separation. Keep the documented setting separate from that historical account.

    Why does One API sometimes return model_not_found for a configured model?

    CNWann's v0.4.3 report connects intermittent GPT-4 errors with an investigation of channel eligibility. In issue #169, the reporter found channel ID 2 had a GPT-3.5 key without GPT-4 configured, and the maintainer requested an abilities-table query. The README also directs users with no available channels to inspect user groups, channel groups and channel model settings.

    What we have not tested yet

    Neither November 25 attempt produced a working gateway request. Streaming reliability, routing distribution, retries, billing accuracy, provider compatibility and production capacity remain outside our completed measurements. There are no completed request timings, memory measurements or known-answer results from a running service. The source-install attempt supplies no build or test result, and the absence of a tests directory does not establish that tests exist nowhere else.

    The golang:1.24-bookworm image label records the requested environment, not the actual Go or operating-system version. The install log does not identify which storage limit was exhausted. The Compose error does not distinguish unreadable configuration from missing services, and its generic run description does not establish a deployment. No screenshot or hands-on question-and-answer artifacts accompany that attempt. The older published October run is a separate record and contributes no installation, build or test counts to this November measurement.

    Issue #83 does record historical resolution: the maintainer published v0.3.1-alpha.1, and formero009 confirmed the fix on May 18, 2023. Current API2D streaming behavior was not exercised here. The historical Berry and model-selection reports likewise do not establish present behavior. The #164 HTML-response troubleshooting has no completed repair in the readable account, and #169 supplies no definitive diagnosis or confirmed fix for its intermittent error.

    The DockerHub discussion records a suspected publishing-credential leak and the maintainer's response, without establishing cleanup of every affected image or recovery of affected hosts. The pure-gateway discussion does not establish delivery of the requested mode. LOG_SQL_DSN has no measured throughput benefit in this review. The routing analysis lacks the inspected code needed here to assert detailed retry mechanics or an unused Weight field at commit 8df4a26.

    No comparative workload was run across New API, Portkey, Laisky's fork or vLLM. New API's capabilities are attributed to the technical review, Portkey appears as a community suggestion, and Laisky's advertised conversion belongs to that fork. Bilibili titles do not establish successful tutorial execution. These boundaries leave the recommendation focused on documented access management and the dated observations described above.

    Alternatives

    ProjectWhat it isPick it when
    New API gh↗A fork identified by the February 2025 technical review for native inbound protocols, routing and billing requirements.Compare its documented interfaces when native provider request formats or routing features determine your gateway choice.
    Portkey AI GatewayA gateway suggested by ye4293 in the discussion requesting a simpler One API.Investigate it when One API's account and quota management exceeds your requirements; the evidence here is a community recommendation.
    Laisky's One APIA separate fork whose README advertises conversion among Chat Completion, Response and Claude Messages.Compare it when applications send different request formats, keeping its documented behavior attached to this fork.

    What people are saying

    1. [github-trending] songquanpeng/one-api

    Sources

    1. One API repository and primary README
    2. English deployment and configuration
    3. Historical DockerHub incident
    4. Generated token troubleshooting
    5. Streaming investigation and confirmed resolution
    6. Pure gateway discussion
    7. February 2025 technical analysis
    8. Laisky fork's documented request formats

    More llm tools reviews