INNER CODE UNIT · Python

main

feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/cli.py:73

def main(ctx) -> None:
    """Drive a stealth browser with an LLM.

    Without a subcommand this is the MCP server over stdio: `uvx aihawk` is
    what an assistant registers, `python -m aihawk` is what the interface
    spawns. `aihawk ui` is the interface, which brings a model.

    The model comes from OpenRouter and nowhere else: pass --openrouter-key or
    set OPENROUTER_API_KEY. Without one the interface refuses to start - an
    agent is a model with a browser, and there is no half of it to serve. To
    drive the browser by hand without a model, use the invisible_playwright
    library directly: same engine, Playwright's whole API.

    Said here rather than only in the subcommand because this is the first page
    anybody reads, and a key requirement discovered from an error message is a
    key requirement discovered too late.

    A `.env` in the directory you run from is read first, so the key and the

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…