Skip to main content

ApiShare Tunnel

Expose your local API service to the public internet through the ApiShare platform.

Installation

pip install apishare

Client Usage

Expose a local API service running on port 8000:

apishare -k YOUR_TOKEN -p 8000

Your service is now accessible through the platform.

Server Usage (Platform Admin)

Run the tunnel server:

apishare serve --port 3397

Options

-k, --key    Platform auth token (required for client mode)
-p, --port   Local service port (required for client mode)
--host       Local service address (default: localhost)
-s, --server Tunnel server address (default: apishare.cc)

--server accepts a plain host (apishare.cc, default wss://), host:port, or a full ws:// / wss:// URL for self-hosted servers.

v1.1.0 — reliability upgrade (engineered after samaidev/aitun)

  • Large responses no longer stall: bodies over 64KB are streamed as 128KB chunks instead of one giant WebSocket frame.
  • Idle SSE keepalive: LLM generations with long silent gaps stay alive (empty keepalive chunks every 30s of upstream silence).
  • Smarter reconnects: exponential backoff capped at 30s + jitter; a 4009 close code ("replaced by a newer client with the same token") stops reconnecting instead of fighting the other instance.
  • Safe concurrent sends: parallel requests share one serialized send path, so heartbeats and response chunks can no longer interleave.
  • Port pre-flight: warns immediately when nothing listens on -p PORT.

The client remains fully protocol-compatible with older servers.

Metadata

Release files for apishare-tunnel 1.1.0

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

Source distribution (sdist)

Source distribution for apishare-tunnel 1.1.0
File Size Uploaded Provenance Actions
apishare_tunnel-1.1.0.tar.gz 2.4 kB Without provenance Details for apishare_tunnel-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apishare-tunnel 1.1.0
File Interpreter ABI Platform Actions
apishare_tunnel-1.1.0-py3-none-any.whl Python 3 none any Details for apishare_tunnel-1.1.0-py3-none-any.whl

Total release size: 4.6 kB

Release files / apishare_tunnel-1.1.0.tar.gz

Download URL apishare_tunnel-1.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2ab3be77c035ce69ae0683e728cfe68cc1cbaafe1427101d50194988bab1b07e
BLAKE2b-256 checksum
How to use checksums
6331c6f36273c1bd42e5e8c6a39a31c68945890ab4048d0280f526d785b37b43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / apishare_tunnel-1.1.0-py3-none-any.whl

Download URL apishare_tunnel-1.1.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09048b5f2542b7e153b66d8b244fa5ed950a9f2216e84133c1810c28bf521a7e
BLAKE2b-256 checksum
How to use checksums
ab5c5dbb5a1bc8b924ed2cbf1f80205b4c0b6efd5d88b62806d6f74f5f839758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for apishare-tunnel 1.1.0

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.

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