Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

413 B
Raw Blame
"""A dev server for tests: listens on `port_server.py <port>` until stopped. Not `python -m http.server`, which looks up
its own name before it listens: on CI's macOS machines that takes 35 s."""

import socket
import sys

listener = socket.create_server(("127.0.0.1", int(sys.argv[1])))
try:
    while True:
        connection, _ = listener.accept()
        connection.close()
except KeyboardInterrupt:
    pass