Skip to main content

bifrost-agent

Mac path-tunnel agent for Bifrost. Connects outbound over WebSocket and exposes a local HTTP app under Bifrost’s tunnels base path (default /tunnels/{slug}).

Install

pipx install bifrost-agent
# or: pip install bifrost-agent  (inside a venv)

Requires Python 3.11+.

Connect

  1. In Bifrost Console → Tunnels, create a tunnel and attach a path route (set Local URL there, e.g. http://127.0.0.1:3000).
  2. Copy the one-time install command and run:
sudo bifrost tunnel install <token>

The token embeds the Bifrost WebSocket URL and auth secret. Local upstream URLs are not passed on the CLI — they come from the console on each request.

You can install multiple tokens on one Mac; each gets its own LaunchDaemon and instance id.

Commands

sudo bifrost tunnel install <token>     # add/replace one instance
bifrost tunnel list                     # id, state, url, logs path
bifrost tunnel logs <id>                # last lines of that instance
bifrost tunnel logs <id> -f             # follow logs
sudo bifrost tunnel repair              # rewrite plists + restart after upgrade
sudo bifrost tunnel uninstall <id>      # remove one instance
sudo bifrost tunnel uninstall --all     # remove every instance
bifrost version

LaunchDaemons use RunAtLoad + KeepAlive so agents start on boot. After reboot the agent waits for DNS, then connects with WebSocket keepalive so a dead session (Bifrost restart, sleep, network blip) reconnects instead of sitting “running” but offline.

Upgrade

pipx upgrade bifrost-agent
sudo bifrost tunnel repair

repair refreshes every installed LaunchDaemon to the new binary and restarts them — no new console token required.

list example:

a1b2c3d4e5f6
  tunnel:  2
  state:   ● running
  url:     wss://bifrost.enfeca.cloud/api/v1/tunnel/connect
  logs:    /Library/Logs/bifrost-tunnel-a1b2c3d4e5f6.log

Per-instance paths:

  • Config: /Library/Application Support/bifrost/instances/<id>/config.json
  • Logs: /Library/Logs/bifrost-tunnel-<id>.log
  • LaunchDaemon: com.bifrost.tunnel.<id>

A pre-0.2.0 install appears as instance id legacy.

Develop

python -m venv .venv
source .venv/bin/activate
pip install -e .
bifrost version
bifrost tunnel list

Publish

Repo: https://github.com/eskeon/bifrost-agent

Tag a release (v*); GitHub Actions builds and publishes to PyPI as bifrost-agent.

Metadata

Release files for bifrost-agent 0.2.4

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

Source distribution (sdist)

Source distribution for bifrost-agent 0.2.4
File Size Uploaded Provenance Actions
bifrost_agent-0.2.4.tar.gz 10.4 kB With provenance Details for bifrost_agent-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bifrost-agent 0.2.4
File Interpreter ABI Platform Actions
bifrost_agent-0.2.4-py3-none-any.whl Python 3 none any Details for bifrost_agent-0.2.4-py3-none-any.whl

Total release size: 23.7 kB

Release files / bifrost_agent-0.2.4.tar.gz

Download URL bifrost_agent-0.2.4.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9aa6ede80e99443e43e6c0315dab3ea7f12c0d31db3951a0fad2bce8431b0399
BLAKE2b-256 checksum
How to use checksums
244117b2c0828de309d734679f708527b41908f980effeac1cfdc3d4aa0757c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Release files / bifrost_agent-0.2.4-py3-none-any.whl

Download URL bifrost_agent-0.2.4-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89927d182e0a374c7eac6364ec267ebfb69fb51d27e225c6af2e56c89cf65692
BLAKE2b-256 checksum
How to use checksums
827556d8c10d7c70fa12fe107154356d6a65d39f18890f8f764cb3417e878239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

Security for bifrost-agent 0.2.4

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bifrost_agent-0.2.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 2, 2026.

Transparency log

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