# Connect AI Helper to this agent User intent: install AI Helper in the current agent, make it discoverable in future sessions, and verify it now. This authorizes setup and read-only checks, not phone calls, purchases, accepting agreements, bypassing tool approvals, or changing other agents. ## 1. Identify this runtime - Use your own client identity and environment, not whichever unrelated CLI happens to be installed. - Supported installer names: `codex`, `claude` (Claude Code), `hermes`, `openclaw`, `opencode`. - If uncertain, inspect your client’s help/configuration or use `auto`. Ask the user which client only if ambiguity cannot be resolved. Do not register all installed clients. - You need terminal execution, Python 3.8+, HTTPS network access and a persistent user profile on the machine that runs the agent. A browser-only agent without installation/tool support cannot install this itself; explain the actual missing capability. ## 2. Install and connect Run the following with the identified name in place of ``: ```sh curl -fsSL https://console.aihelper.si/install | python3 - connect --no-open ``` `--no-open` avoids starting a nested agent. If you cannot identify the client, `connect auto --no-open` attempts detection. For an unlisted MCP client use `connect generic --no-open`, then import the printed MCP configuration into that client’s documented persistent user settings. Do not claim generic mode has registered the client automatically. Keep the installer running while the user approves. Show the printed verification URL and matching code promptly. The user signs in and personally approves access and the Calling Agreement in their browser. Never request passwords or tokens in chat, sign for them, inspect the credential file, or approve their account on their behalf. If the terminal tool yields a process/session ID, keep that process and poll it; do not start a second installer while approval is pending. The installer saves its connector and credential under the user's XDG data/config directories (default `~/.local/share/aihelper/aihelper.py` and `~/.config/aihelper/connection.json`). A valid saved connection is reused on rerun. Never print the credential file. Do not copy it to a repository or another user’s machine. ## 3. Make it available in future sessions Supported named installers register the `aihelper` MCP server persistently for that client/profile. Codex also receives a managed account skill. A new session on the same machine and profile can discover AI Helper through its configured tools; it receives the operating guide during MCP initialization. This does not carry across computers, disposable containers, different profiles, removed configuration, expired credentials, or revoked access. Check the client’s documented MCP configuration/status, not just the presence of the CLI connector. For generic clients, finish the persistent user-level MCP registration using the printed configuration, preserving existing servers and settings. If the host has no MCP support, explain that future-session discovery is not configured; do not invent configuration paths or claim permanent memory. Do not overwrite AGENTS.md, CLAUDE.md, system instructions, unrelated skills, or the user's custom configuration to force discovery. ## 4. Verify and use it in this session First reload/discover the client’s MCP tools if supported. Quietly call `get_account` and `list_voices`. Do not claim success without successful account-scoped read-only checks. If the current session cannot load newly registered MCP tools without restarting, it can still use the authenticated local CLI immediately. Resolve the saved connector location from `XDG_DATA_HOME`, defaulting to `~/.local/share`: ```sh python3 ~/.local/share/aihelper/aihelper.py tools python3 ~/.local/share/aihelper/aihelper.py tool get_account python3 ~/.local/share/aihelper/aihelper.py tool list_voices ``` `tools` returns the current server guide and permitted tool schemas. Use the actual XDG path when overridden. For tools with arguments, write a JSON object to a private local file and pass its path; avoid interpolating user content into shell commands: ```sh python3 ~/.local/share/aihelper/aihelper.py tool TOOL_NAME --arguments-file /path/to/private-arguments.json ``` This invokes the same account tools, scopes, validation and billing rules as MCP; it does not bypass authorization. It is a bridge for this session, not proof that future MCP sessions are configured. Never call `start_call` as a setup test. Use the operating guide from `tools`/MCP or https://console.aihelper.si/agent-guide.md for real tasks. If the user has not signed the Calling Agreement, show the returned URL and recheck the account after they sign. If no task is pending, say “AI Helper is ready. Who should I call, and what should I achieve?” If a task is pending, continue within its authorization. Explain any reload requirement for native MCP use without implying the current session cannot use the CLI. ## 5. Report precisely Report whether the account is verified, which client/profile was configured, and whether this session uses MCP or the local CLI. Never promise support for every harness. New sessions still follow their normal tool-discovery and approval rules. Human guide: https://console.aihelper.si/guide Operating guide: https://console.aihelper.si/agent-guide.md