Skip to main content

An OpenAI- and Anthropic-compatible gateway connecting free model stations, cloud services and local models through one API and Web UI.

  • One API for Chat Completions, Responses and Anthropic Messages.
  • Account management with API keys, browser/device login, renewal and rotation.
  • Model discovery with capabilities, reasoning menus and availability probes.
  • Live usage with calls in flight, token and cache breakdowns, first-token latency and generation speed, hour by hour for any day, kept in a local SQLite database.
  • A multilingual Web UI for channels, models, chat, usage and settings.

Quick start

Requires Python 3.10 or newer:

python -m pip install -U hoshimi
hoshimi serve

Open http://127.0.0.1:10600. The package includes the built Web UI; no frontend build is needed. If that port is busy, use the URL printed by the server.

OpenCode Zen and Kilo anonymous entry points are enabled by default, without a configuration file. Availability depends on upstream models, quota and service state. Add other provider accounts in Channels, and configure the gateway in Settings.

python -m hoshimi is equivalent to hoshimi. To locate the shared configuration:

hoshimi config path

For optional cloud dependencies, CLI options, configuration migration and source installation, see the installation guide and configuration guide.

First API call

List models and replace <model-id> with an ID from the response:

curl http://127.0.0.1:10600/v1/models

curl http://127.0.0.1:10600/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"<model-id>","messages":[{"role":"user","content":"hi"}]}'

If a model API key is configured, add Authorization: Bearer <model-api-key> to both requests. Chat Completions streams by default; send "stream": false for JSON.

OpenAI-compatible clients generally use http://127.0.0.1:10600/v1 as Base URL. Anthropic-compatible agents use http://127.0.0.1:10600 and a model from the same catalogue. See API integration and Anthropic agents.

Access keys

Configure two independent keys in Settings:

  • Tool access key protects management APIs, settings and API documentation.
  • Model API key protects external /v1/* inference requests.

Provider account credentials are configured separately in Channels. An empty gateway key disables authentication only for its own surface. For LAN access, configure the tool key and permitted client networks; see authentication.

Documentation

Documentation index

Task Guide
Install, upgrade or use the Web UI Installation
Configure paths, fields or migrate an older install Configuration
Set keys, sign in or use EAC Authentication
Connect clients or agents API · Anthropic
Add cloud or local accounts Providers · Cloud platforms · NVIDIA
Understand capabilities, retries, quota or statistics Model behavior
Develop, build or release Development
Review migration coverage and protocol differences Inventory · OpenCode · pi-free

Full endpoint schemas are available at the running server's /docs and /openapi.json. They use the tool access key when configured.

License

GNU General Public License, version 3 only (GPL-3.0-only). See LICENSE.

Metadata

Release files for hoshimi 0.6.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hoshimi 0.6.27
File Size Uploaded Provenance Actions
hoshimi-0.6.27.tar.gz 3.8 MB Without provenance Details for hoshimi-0.6.27.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hoshimi 0.6.27
File Interpreter ABI Platform Actions
hoshimi-0.6.27-py3-none-any.whl Python 3 none any Details for hoshimi-0.6.27-py3-none-any.whl

Total release size: 7.9 MB

Release files / hoshimi-0.6.27.tar.gz

Download URL hoshimi-0.6.27.tar.gz
Size 3.8 MB
Tags Source
SHA-256 checksum
How to use checksums
9c7446da2a6af5bc3b7805b1543702d1bf396cfbb51aa16015f46aee348fbab6
BLAKE2b-256 checksum
How to use checksums
7c660a0dc9f03f9c9a3de4b44c90ca0c2de1414decf3dcec9c23dc6af0f2c891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / hoshimi-0.6.27-py3-none-any.whl

Download URL hoshimi-0.6.27-py3-none-any.whl
Size 4.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a4844d24abd5088bbd348a31b08d71a2e5b29d670de3383b69efc496d2c73c87
BLAKE2b-256 checksum
How to use checksums
25551451f0ac1c1965620af703b4bc41bc381faf572835a2a3eee732f22200e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for hoshimi 0.6.27

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.27 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page