### Start the agent control plane with admin-mcp Source: https://github.com/howdeploy/remorafish/blob/main/README.md Launches the Admin MCP server with browser scanning and account mutations allowed. Use this to let a local coding agent orchestrate account setup. ```bash uv run remorafish admin-mcp \ --allow-browser-scan \ --allow-account-mutations ``` -------------------------------- ### Start the reference UI server Source: https://github.com/howdeploy/remorafish/blob/main/README.md Starts the RemoraFish server, which listens on http://127.0.0.1:8787 by default. Use the Settings → Accounts page to add provider accounts with per-account proxies. ```bash uv run remorafish serve ``` -------------------------------- ### Install RemoraFish with git clone and uv sync Source: https://github.com/howdeploy/remorafish/blob/main/README.md Clones the repository and installs dependencies including dev extras using uv. Run these commands in order to set up the project. ```bash git clone https://github.com/howdeploy/remorafish.git cd remorafish uv sync --extra dev ``` -------------------------------- ### Start MCP over stdio Source: https://github.com/howdeploy/remorafish/blob/main/README.md Launches the MCP server over standard input/output for agent integration. ```bash # MCP over stdio uv run remorafish mcp ``` -------------------------------- ### Start the runtime and check health Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Starts the RemoraFish server and checks health and model catalog. /health proves the process and registry started; /v1/models proves the catalog can be built with the current accounts. A model listed as unavailable cannot be used until its account leaves quarantine/cooldown or credentials are updated. ```bash uv run remorafish serve ``` ```bash curl -s http://127.0.0.1:8787/health ``` ```bash curl -s http://127.0.0.1:8787/v1/models ``` -------------------------------- ### Initialize a provider plugin with remorafish providers init Source: https://github.com/howdeploy/remorafish/blob/main/AGENTS.md Generates a separate plugin project scaffold for a new provider. Run this before implementing the provider contract. ```bash remorafish providers init example ``` -------------------------------- ### Start server and check health and models Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Starts the RemoraFish server and verifies it is running by checking the health endpoint and listing available models. The default loopback server does not require an API key. ```bash uv run remorafish serve ``` ```bash curl http://127.0.0.1:8787/health ``` ```bash curl http://127.0.0.1:8787/v1/models ``` -------------------------------- ### ProviderManifest Example Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Defines a provider plugin's manifest with name, version, auth modes, credential rules, and capabilities. Must be network-free and contain no secrets. ```python from remorafish.framework import CredentialRule, ProviderManifest manifest = ProviderManifest( name="example", display_name="Example", plugin_version="1.0.0", auth_modes=("token", "browser"), browser_origins=("example.com",), browser_discovery="plugin", credential_rules=(CredentialRule("token", "access_token"),), credential_reset_fields=("access_token",), capabilities=("chat", "web_search", "attachments"), ) ``` -------------------------------- ### Rebuild Agentation toolbar Source: https://github.com/howdeploy/remorafish/blob/main/README.md Install dependencies and rebuild the bundled Agentation React island after dependency changes. ```bash npm install npm run build:agentation ``` -------------------------------- ### CLI login and account creation with remorafish accounts Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Creates a browser account with username and proxy, then starts a visible browser login. Omitting --password opens a hidden terminal prompt to avoid shell history exposure. ```bash remorafish accounts add grok \ --username name@example.com \ --proxy http://user:password@host:port \ --browser brave remorafish accounts login grok-name-example-com --visible-browser ``` -------------------------------- ### Scaffold a provider package with remorafish providers init Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Creates a safe standalone starting package named remorafish-provider-example. The generator refuses to overwrite an existing path. The generated project includes packaging metadata, entry-point registration, a complete manifest, adapter skeleton, and a strict contract test. ```bash remorafish providers init example cd remorafish-provider-example uv sync --extra dev uv run pytest -q ``` -------------------------------- ### Run without reference UI: uv run remorafish serve --no-ui Source: https://github.com/howdeploy/remorafish/blob/main/docs/reference-ui.md Use this command to start the server without the bundled reference web UI. The UI is optional and not required for headless API or MCP operation. ```bash uv run remorafish serve --no-ui ``` -------------------------------- ### POST /api/accounts/{id}/login Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Starts an explicit scripted or manual browser login for the specified account. This endpoint initiates the login process in an isolated browser. ```APIDOC ## [POST] /api/accounts/{id}/login ### Description Starts an explicit scripted or manual browser login for the specified account. This endpoint initiates the login process in an isolated browser. ### Method POST ### Endpoint /api/accounts/{id}/login ### Parameters #### Path Parameters - **id** (string) - Required - Account ID #### Request Body - **mode** (string) - Optional - Login mode: scripted or manual - **visible** (boolean) - Optional - Whether to show the browser window ### Request Example { "mode": "manual", "visible": true } ### Response #### Success Response (200) - **job_id** (string) - Login job ID #### Response Example { "job_id": "job-id" } ``` -------------------------------- ### Register provider entry point in pyproject.toml Source: https://github.com/howdeploy/remorafish/blob/main/AGENTS.md Declares the provider's entry point under the remorafish.providers group. The plugin must also declare ProviderManifest, implement chat() and health_check(), and provide list_models_offline(). ```toml [project.entry-points."remorafish.providers"] example = "remorafish_provider_example:register" ``` -------------------------------- ### Run provider conformance gate and tests Source: https://github.com/howdeploy/remorafish/blob/main/AGENTS.md Runs the formal contract gate and the full test suite. The provider's strict conformance report must pass and the regression suite must remain green. ```bash remorafish providers check pytest -q ``` -------------------------------- ### Streamable HTTP tools/list curl example Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Calls the MCP tools/list method over Streamable HTTP. Requires MCP-Protocol-Version and Mcp-Method headers, and includes protocol metadata in the request body. ```bash curl http://127.0.0.1:8787/mcp \ -H 'Content-Type: application/json' \ -H 'MCP-Protocol-Version: 2026-07-28' \ -H 'Mcp-Method: tools/list' \ -d '{ "jsonrpc":"2.0", "id":1, "method":"tools/list", "params":{"_meta":{ "io.modelcontextprotocol/protocolVersion":"2026-07-28", "io.modelcontextprotocol/clientInfo":{"name":"test","version":"1"}, "io.modelcontextprotocol/clientCapabilities":{} }} }' ``` -------------------------------- ### Run admin MCP server with optional browser and mutation tools Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Starts the stdio-only control plane for account and browser operations. By default, only read-only status and account health tools are published; use --allow-browser-scan to publish browser scanning and --allow-account-mutations to publish import, visible login, enable, and removal tools. Raw tokens, cookies, passwords, proxy credentials, and vault data never appear in MCP results. ```bash uv run remorafish admin-mcp # Explicitly publish consent-gated browser and mutation tools: uv run remorafish admin-mcp \ --allow-browser-scan \ --allow-account-mutations ``` -------------------------------- ### GET /api/accounts/login-jobs/{job} Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Polls the state of a login job, including launch, form, MFA/captcha, capture, success, or error. This endpoint provides real-time status updates for login processes. ```APIDOC ## [GET] /api/accounts/login-jobs/{job} ### Description Polls the state of a login job, including launch, form, MFA/captcha, capture, success, or error. This endpoint provides real-time status updates for login processes. ### Method GET ### Endpoint /api/accounts/login-jobs/{job} ### Parameters #### Path Parameters - **job** (string) - Required - Login job ID ### Response #### Success Response (200) - **state** (string) - Current state: launch, form, mfa, captcha, capture, success, or error - **details** (object) - Additional details #### Response Example { "state": "success", "details": {} } ``` -------------------------------- ### Check installed providers with remorafish providers check Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Validates built-in and external providers together. The check is network-free and verifies manifest/API compatibility, names, credential rules, exact method signatures, endpoint metadata, health-probe presence, offline catalog shape, model ownership, IDs, feature maps, and duplicates. It complements provider parser/transport tests and does not replace a separately authorized live web-session smoke test. ```bash remorafish providers check remorafish providers check --json ``` -------------------------------- ### admin-mcp Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Starts the local admin MCP server for account and browser operations. This is a stdio-only control plane that publishes consent-gated tools for browser scanning and account mutations. ```APIDOC ## admin-mcp ### Description Starts the local admin MCP server for account and browser operations. This is a stdio-only control plane that publishes consent-gated tools for browser scanning and account mutations. ### Method CLI command ### Endpoint `uv run remorafish admin-mcp` ### Parameters #### Flags - `--allow-browser-scan` (boolean) - Optional - Publishes browser scanning tools. - `--allow-account-mutations` (boolean) - Optional - Publishes import, visible login, enable, and removal tools. ### Request Example ```bash uv run remorafish admin-mcp ``` ### Response #### Success Response - Starts the MCP server with read-only status and account health tools always present. #### Response Example (No structured response; server runs in stdio mode.) ``` -------------------------------- ### GET /api/accounts Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Retrieves public account status, masked proxy, counters, routing summary, and latest login job. This endpoint does not return passwords, full proxies, tokens, or cookies. ```APIDOC ## [GET] /api/accounts ### Description Retrieves public account status, masked proxy, counters, routing summary, and latest login job. This endpoint does not return passwords, full proxies, tokens, or cookies. ### Method GET ### Endpoint /api/accounts ### Response #### Success Response (200) - **accounts** (array) - List of account statuses - **masked_proxy** (string) - Masked proxy URL - **counters** (object) - Routing counters - **routing_summary** (object) - Routing summary - **latest_login_job** (object) - Latest login job information #### Response Example { "accounts": [], "masked_proxy": "http://***:***@host:port", "counters": {}, "routing_summary": {}, "latest_login_job": {} } ``` -------------------------------- ### MCP stdio transport Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Starts a line-delimited JSON-RPC 2.0 server over stdio. Each stdin line is one JSON message and each response is one stdout line. ```APIDOC ## MCP stdio transport ### Description Starts a line-delimited JSON-RPC 2.0 server over stdio. Each stdin line is one JSON message and each response is one stdout line. Notifications produce no response. ### Command `remorafish mcp` ### Configuration Example ```json { "mcpServers": { "remorafish": { "command": "uv", "args": [ "run", "--project", "/absolute/path/to/remorafish", "remorafish", "mcp" ] } } } ``` ### Notes - Runtime logs must not be written to stdout. - The exact outer configuration key differs by client; command and arguments do not. ``` -------------------------------- ### POST /v1/messages curl example Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Sends a request to the Anthropic Messages API endpoint. Requires the anthropic-version header and a JSON body with model, max_tokens, system, and messages. ```bash curl http://127.0.0.1:8787/v1/messages \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \ -d '{ "model": "grok/fast", "max_tokens": 512, "system": "Be concise.", "messages": [{"role":"user","content":"Hello"}] }' ``` -------------------------------- ### Run tests and check providers Source: https://github.com/howdeploy/remorafish/blob/main/README.md Run the test suite and verify provider configurations using uv. ```bash uv run pytest -q uv run remorafish providers check ``` -------------------------------- ### Add accounts via CLI Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Use these commands to import credentials for Kimi, DeepSeek, and Grok through the existing account command, avoiding printing secrets in shell history. ```bash uv run remorafish accounts add kimi uv run remorafish accounts add deepseek uv run remorafish accounts add grok ``` -------------------------------- ### Default TOML configuration for server and accounts Source: https://github.com/howdeploy/remorafish/blob/main/docs/architecture.md Default configuration file with server host, port, API key, and account store paths. Environment overrides are REMORAFISH_HOST, REMORAFISH_PORT, REMORAFISH_API_KEY, and REMORAFISH_HOME. A non-loopback bind is rejected unless api_key is set. ```toml [server] host = "127.0.0.1" port = 8787 api_key = "" [accounts] store = "~/.remorafish/accounts.json" vault = "~/.remorafish/account_vault.json" vault_key = "~/.remorafish/vault.key" browser_profiles = "~/.remorafish/login_profiles" ``` -------------------------------- ### Scan accounts with CLI options Source: https://github.com/howdeploy/remorafish/blob/main/README.md Scans browser snapshots, validates and saves valid accounts, or outputs agent-friendly JSON. Use --check --save --yes for automatic saving, or -b to select specific browsers with --json output. ```bash # Browsers may stay open. Scan live snapshots, validate, and save valid accounts. uv run remorafish accounts scan --browser all --check --save --yes ``` ```bash # Or choose several browsers and get agent-friendly JSON. uv run remorafish accounts scan -b brave -b firefox --check --json ``` -------------------------------- ### Register an external provider entry point in pyproject.toml Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Declares a provider plugin entry point under the 'remorafish.providers' group. The loaded object may be a ProviderAdapter instance, an adapter class, or a register(registry) callable. Provider names must be globally unique and match [a-z][a-z0-9_-]*. ```toml [project.entry-points."remorafish.providers"] example = "remorafish_provider_example:register" ``` -------------------------------- ### List MCP tools over HTTP with curl Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Use this curl command to list available MCP tools from the local server at http://127.0.0.1:8787/mcp. The request uses JSON-RPC 2.0 with method 'tools/list'. The response will show available tools; note that 'x_search' and 'web_search' may be absent depending on live accounts. ```bash curl http://127.0.0.1:8787/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' ``` -------------------------------- ### Send a real prompt to Kimi Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Sends a real prompt to the Kimi provider. Choose the exact current ID from /v1/models. Kimi's access token is short-lived; if the browser profile contains the current refresh_token, the first real prompt refreshes it through the current AuthService/RefreshToken Connect RPC and stores the rotated replacement. If the scanner finds only an expired access token, sign in to Kimi again, fully exit the browser, and repeat the scan. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{"model":"kimi/kimi-k2.6","input":"Reply with exactly: kimi-ok"}' ``` -------------------------------- ### Send a real prompt to DeepSeek Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Sends a real prompt to the DeepSeek provider. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{"model":"deepseek/chat","input":"Reply with exactly: deepseek-ok"}' ``` -------------------------------- ### Verify the account store Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Lists the saved accounts. Never paste ~/.remorafish/accounts.json into an issue or agent transcript; the file contains complete tokens/cookies even though CLI output does not. ```bash uv run remorafish accounts list ``` -------------------------------- ### ProviderAdapter Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Base class for provider adapters. Subclasses must implement the required methods to integrate with the RemoraFish runtime. ```APIDOC ## ProviderAdapter ### Description Base class for provider adapters. Subclasses must implement the required methods to integrate with the RemoraFish runtime. ### Required Methods #### chat(messages, model, features, account, session) - **Description**: Async iterator of neutral events for one upstream attempt. - **Parameters**: - **messages** (list) - Required - Conversation messages. - **model** (string) - Required - Model identifier. - **features** (object) - Required - Feature flags. - **account** (object) - Required - Account information. - **session** (object) - Required - Session context. - **Returns**: Async iterator of neutral events. #### list_models() - **Description**: Returns the current model catalog. May use the network. - **Returns**: Model catalog. #### list_models_offline() - **Description**: Returns a deterministic non-empty catalog without network access. - **Returns**: Model catalog. #### endpoints() - **Description**: Returns named diagnostic upstream URLs without credentials. - **Returns**: Dictionary of endpoint names to URLs. #### health_check(account) - **Description**: Read-only credential probe returning `ProviderHealth`, never a secret. - **Parameters**: - **account** (object) - Required - Account information. - **Returns**: `ProviderHealth` object. #### credentials_from_input() - **Description**: Generic UI/CLI token and cookie normalization. - **Returns**: Normalized credentials. #### credentials_from_candidate() - **Description**: Browser candidate kind to provider field mapping. - **Returns**: Mapped credentials. #### merge_credentials() - **Description**: Atomic provider-specific replacement semantics. - **Returns**: Merged credentials. #### discover_browser_credentials(profiles, *, browser_assist=True) - **Description**: Optional external-plugin hook when `browser_discovery="plugin"`. Returns `CredentialCandidate` objects. - **Parameters**: - **profiles** (list) - Required - Browser profiles. - **browser_assist** (boolean) - Optional - Whether to use browser assistance. - **Returns**: List of `CredentialCandidate` objects. #### run_interactive_login() - **Description**: Optional provider-owned sign-in/capture flow when `interactive_login="plugin"`. Returns `ProviderLoginResult`. - **Returns**: `ProviderLoginResult` object. ### Optional Lifecycle Hooks - **configure_runtime(config)** - Configure runtime settings. - **credentials_changed(account)** - Called when credentials change. - **close()** - Clean up resources. ### Example ```python from remorafish.framework import ProviderAdapter class MyAdapter(ProviderAdapter): manifest = ... async def chat(self, messages, model, features, account, session): ... def list_models(self): ... def list_models_offline(self): ... def endpoints(self): ... def health_check(self, account): ... def credentials_from_input(self): ... def credentials_from_candidate(self): ... def merge_credentials(self): ... ``` ``` -------------------------------- ### POST /api/accounts/browser-scan/{scan}/import Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Imports selected in-memory candidates from a browser scan. This endpoint finalizes the import of scanned candidates. ```APIDOC ## [POST] /api/accounts/browser-scan/{scan}/import ### Description Imports selected in-memory candidates from a browser scan. This endpoint finalizes the import of scanned candidates. ### Method POST ### Endpoint /api/accounts/browser-scan/{scan}/import ### Parameters #### Path Parameters - **scan** (string) - Required - Scan ID #### Request Body - **candidates** (array) - Required - List of candidate identifiers to import ### Request Example { "candidates": ["candidate-id-1", "candidate-id-2"] } ### Response #### Success Response (200) - **imported** (integer) - Number of imported candidates #### Response Example { "imported": 2 } ``` -------------------------------- ### POST /api/accounts Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Creates a new account with password, token, or browser authentication. This endpoint accepts passwords and can launch local browsers, so it is restricted to local machine access. ```APIDOC ## [POST] /api/accounts ### Description Creates a new account with password, token, or browser authentication. This endpoint accepts passwords and can launch local browsers, so it is restricted to local machine access. ### Method POST ### Endpoint /api/accounts ### Parameters #### Request Body - **type** (string) - Required - Account type: password, token, or browser - **username** (string) - Required - Username for the account - **password** (string) - Optional - Password for the account (required for password type) - **token** (string) - Optional - Token for the account (required for token type) - **proxy** (string) - Optional - Full proxy URL - **browser** (string) - Optional - Browser type (e.g., brave) ### Request Example { "type": "password", "username": "name@example.com", "password": "secret", "proxy": "http://user:password@host:port", "browser": "brave" } ### Response #### Success Response (201) - **id** (string) - Account ID #### Response Example { "id": "account-id" } ``` -------------------------------- ### Scan all browsers with check and save using --save --yes Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Scans all browsers, validates each credential with --check, and saves only those that return valid=True when --yes is used. ```bash remorafish accounts scan --browser all --check --save --yes ``` -------------------------------- ### JSON contract for agents (--json output) Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Emitted by `--json` instead of a Rich table. Contains schema_version, platform, profiles, notes, credentials, and save fields. Full secret values are never included; agents that need to save credentials must run `--save --yes` and do not need to read them. Combining `--json --save` without `--yes` exits with code 2 and a `non_interactive_confirmation_required` note. ```json { "schema_version": 1, "platform": "linux", "profiles": [{"browser": "brave", "profile": "Default", "locked": false}], "notes": [{"code": "...", "message": "..."}], "credentials": [ { "index": 0, "provider": "deepseek", "kind": "token", "source": "brave:Default:Local Storage/...", "masked_value": "abcdef…uvwxyz", "account_hint": null, "check": {"valid": true, "detail": "OK", "account_hint": null} } ], "save": {"path": null, "actions": []} } ``` -------------------------------- ### Scan all browsers with remorafish accounts scan Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Use `--browser all` to scan every detected browser profile. The `--browser` flag can be repeated, contain commas, or be set to `all`. ```bash remorafish accounts scan --browser all ``` -------------------------------- ### Inspect structured output with JSON scan Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Use for automation to inspect structured output. An agent should inspect profiles, notes[*].code, provider/kind metadata, and never ask for raw values. credentials being empty is a valid result, not a parser crash. ```bash uv run remorafish accounts scan --browser all --json ``` -------------------------------- ### Call universal chat tool via MCP with curl Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Use this curl command to invoke the 'web_chat' tool with a prompt. The request uses JSON-RPC 2.0 with method 'tools/call'. The model is set to 'deepseek/chat' and the prompt asks for 'mcp-ok'. Expect a response from the chat tool. ```bash curl http://127.0.0.1:8787/mcp \ -H 'Content-Type: application/json' \ -d '{ "jsonrpc":"2.0", "id":3, "method":"tools/call", "params":{ "name":"web_chat", "arguments":{"model":"deepseek/chat","prompt":"Reply with mcp-ok"} } }' ``` -------------------------------- ### Dry scan all browsers Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Performs a dry scan of all browsers without stopping or modifying the user's browser. The command must show masked values only; `profile_live_snapshot` is informational, not an error. ```bash uv run remorafish accounts scan --browser all ``` -------------------------------- ### POST /api/accounts/browser-scan Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Performs an explicit browser snapshot scan. This endpoint requires `confirmed=true` to proceed. ```APIDOC ## [POST] /api/accounts/browser-scan ### Description Performs an explicit browser snapshot scan. This endpoint requires `confirmed=true` to proceed. ### Method POST ### Endpoint /api/accounts/browser-scan ### Parameters #### Request Body - **confirmed** (boolean) - Required - Must be true to proceed ### Request Example { "confirmed": true } ### Response #### Success Response (200) - **scan_id** (string) - Scan ID #### Response Example { "scan_id": "scan-id" } ``` -------------------------------- ### Register Agentation MCP server with Codex Source: https://github.com/howdeploy/remorafish/blob/main/README.md Add the Agentation MCP server (localhost:4747) to Codex. Restart Codex after changing MCP configuration. ```bash codex mcp add agentation -- npx -y agentation-mcp server ``` -------------------------------- ### Validate and save accounts non-interactively Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Safe non-interactive import. With this exact combination, only credentials returning valid=true are saved; unknown network results and rejected credentials are not written. Without --yes, --save asks for indexes; without --check, --save --yes saves every exactly extracted value, including an expired value, so use that form only when offline import is intentional. ```bash uv run remorafish accounts scan \ --browser all \ --check \ --save \ --yes \ --json ``` -------------------------------- ### Configure remorafish-admin MCP server in client Source: https://github.com/howdeploy/remorafish/blob/main/docs/agent-control-plane.md Generic MCP client configuration for the admin server. Uses the `uv` command with the project path and the same capability flags. ```json { "mcpServers": { "remorafish-admin": { "command": "uv", "args": [ "run", "--project", "/absolute/path/to/remorafish", "remorafish", "admin-mcp", "--allow-browser-scan", "--allow-account-mutations" ] } } } ``` -------------------------------- ### POST /api/accounts/{id}/enable Source: https://github.com/howdeploy/remorafish/blob/main/docs/accounts.md Clears quarantine or disabled state after credentials are fixed. This endpoint re-enables an account that was previously disabled. ```APIDOC ## [POST] /api/accounts/{id}/enable ### Description Clears quarantine or disabled state after credentials are fixed. This endpoint re-enables an account that was previously disabled. ### Method POST ### Endpoint /api/accounts/{id}/enable ### Parameters #### Path Parameters - **id** (string) - Required - Account ID ### Response #### Success Response (200) - **status** (string) - Enable status #### Response Example { "status": "enabled" } ``` -------------------------------- ### MCP stdio client configuration JSON Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Generic client configuration for the stdio transport. The outer configuration key differs by client, but the command and arguments remain the same. ```json { "mcpServers": { "remorafish": { "command": "uv", "args": [ "run", "--project", "/absolute/path/to/remorafish", "remorafish", "mcp" ] } } } ``` -------------------------------- ### Run network-free framework gate Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Run before any live-account check. `providers check` validates provider manifests, credential mappings, method signatures, endpoint declarations, offline catalogs, health hooks, and model ownership without contacting a provider. The pytest run is part of the deterministic conformance suite. ```bash uv run remorafish providers check uv run pytest -q ``` -------------------------------- ### POST /v1/chat/completions Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Broadest compatibility surface for existing OpenAI chat clients. Supports standard chat messages with text, image, and file content, and returns chat completions or streaming chunks. ```APIDOC ## [POST] /v1/chat/completions ### Description Broadest compatibility surface for existing OpenAI chat clients. Supports standard chat messages with text, image, and file content, and returns chat completions or streaming chunks. ### Method POST ### Endpoint /v1/chat/completions ### Parameters #### Request Body - **model** (string) - Required - Model identifier, e.g., "deepseek/chat". - **messages** (array) - Required - Array of message objects with standard roles. - **role** (string) - Required - Role of the message (e.g., "user"). - **content** (string or array) - Required - Content as a string or part array containing text, base64 image_url data URI, or inline file/input_file object with filename and file_data. - **stream** (boolean) - Optional - Whether to stream the response. #### Headers - **X-Conversation-Id** (string) - Optional - Keep an explicit process-local conversation chain. ### Request Example ```bash curl http://127.0.0.1:8787/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{ "model": "deepseek/chat", "messages": [{"role":"user","content":"Explain the project in one line"}], "stream": false }' ``` ### Response #### Success Response (200) - Non-streaming: contains `chat.completion` object. - Streaming: SSE `chat.completion.chunk` objects followed by `[DONE]`. - Reasoning and citations mapped from neutral events when upstream provider supplies them. - Usage normalized from upstream data or estimated when web protocol omits it. #### Response Example (No explicit example provided in source.) ``` -------------------------------- ### Send a real prompt to Grok Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Sends a real prompt to the Grok provider. An auth check may succeed while a particular paid tier/model is unavailable; only this real prompt verifies current entitlement and protocol compatibility. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{"model":"grok/fast","input":"Reply with exactly: grok-ok"}' ``` -------------------------------- ### Send a real prompt to ChatGPT Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Sends a real prompt to the ChatGPT provider. With browser-session credentials, RemoraFish refreshes the access token through /api/auth/session before the conversation request. A browser anti-bot response means the private frontend protocol drifted or the account needs Reconnect; an offline contract test cannot prove that layer. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{"model":"chatgpt/auto","input":"Reply with exactly: chatgpt-ok"}' ``` -------------------------------- ### Scan multiple browsers with repeated -b flags Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Repeat `-b` to scan multiple specific browsers (Chrome, Brave, Firefox) in one command. ```bash remorafish accounts scan -b chrome -b brave -b firefox ``` -------------------------------- ### web_chat Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Performs a chat completion using a live provider account. The tool is published only when any provider has a live account, and it can optionally attach local files when file access is confirmed. ```APIDOC ## web_chat ### Description Performs a chat completion using a live provider account. The tool is published only when any provider has a live account, and it can optionally attach local files when file access is confirmed. ### Method MCP tool call ### Endpoint `tools/call` with name `web_chat` ### Parameters #### Input Arguments - `model` (string) - Required - The provider model identifier (e.g., `chatgpt/auto`). - `prompt` (string) - Optional - The user prompt. Either `prompt` or `messages` must be provided. - `messages` (array) - Optional - A list of chat messages. Either `prompt` or `messages` must be provided. - `attachments` (array) - Optional - Local file attachments. Each item has `path` (string) and `media_type` (string). - `confirm_file_access` (boolean) - Required when attachments are used - Must be set to `true` to allow reading local files. - `conversation_handle` (string) - Optional - Handle for continuing a conversation. ### Request Example ```json { "name": "web_chat", "arguments": { "model": "chatgpt/auto", "prompt": "Summarize the attached report", "attachments": [ {"path": "./reports/q2.pdf", "media_type": "application/pdf"} ], "confirm_file_access": true } } ``` ### Response #### Success Response - `content` (string) - Portable MCP text content. - `structuredContent` (object) - Full normalized object including text, reasoning, citations, tool activity, usage, and handle. - `isError` (boolean) - `false` for success. #### Response Example (Structured content includes text, reasoning, citations, tool activity, usage, and handle.) ``` -------------------------------- ### web_search Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Performs a web search using a live ChatGPT, DeepSeek, or Kimi account. The tool is published only when at least one of those providers has a live account. ```APIDOC ## web_search ### Description Performs a web search using a live ChatGPT, DeepSeek, or Kimi account. The tool is published only when at least one of those providers has a live account. ### Method MCP tool call ### Endpoint `tools/call` with name `web_search` ### Parameters #### Input Arguments - `query` (string) - Required - The search query. - `provider` (string) - Optional - The provider to use (e.g., ChatGPT, DeepSeek, Kimi). - `model` (string) - Optional - The model to use. - `handle` (string) - Optional - Conversation handle for continuation. ### Request Example (No explicit example provided in source.) ### Response #### Success Response - `content` (string) - Portable MCP text content. - `structuredContent` (object) - Summary, sources/citations, and usage. - `isError` (boolean) - `false` for success. #### Response Example (Structured content includes summary, sources/citations, and usage.) ``` -------------------------------- ### ProviderManifest Source: https://github.com/howdeploy/remorafish/blob/main/docs/framework.md Describes a provider plugin's metadata, authentication modes, and capabilities. It is network-free and used to register the plugin with the framework. ```APIDOC ## ProviderManifest ### Description Describes a provider plugin's metadata, authentication modes, and capabilities. It is network-free and used to register the plugin with the framework. ### Constructor `ProviderManifest(name, display_name, plugin_version, auth_modes, browser_origins, browser_discovery, credential_rules, credential_reset_fields, capabilities)` ### Parameters - **name** (string) - Required - Unique identifier for the provider. - **display_name** (string) - Required - Human-readable name for the provider. - **plugin_version** (string) - Required - Version of the provider package. - **auth_modes** (tuple of strings) - Required - Supported authentication modes (e.g., "token", "browser"). - **browser_origins** (tuple of strings) - Required - Allowed browser origins for browser-based authentication. - **browser_discovery** (string) - Required - Browser credential discovery mode: "builtin", "plugin", or "none". - **credential_rules** (tuple of CredentialRule) - Required - Rules for mapping credential fields. - **credential_reset_fields** (tuple of strings) - Required - Fields to reset when credentials are cleared. - **capabilities** (tuple of strings) - Required - Provider capabilities (e.g., "chat", "web_search", "attachments"). ### Example ```python from remorafish.framework import CredentialRule, ProviderManifest manifest = ProviderManifest( name="example", display_name="Example", plugin_version="1.0.0", auth_modes=("token", "browser"), browser_origins=("example.com",), browser_discovery="plugin", credential_rules=(CredentialRule("token", "access_token"),), credential_reset_fields=("access_token",), capabilities=("chat", "web_search", "attachments"), ) ``` ``` -------------------------------- ### Send a chat request via HTTP API Source: https://github.com/howdeploy/remorafish/blob/main/README.md Sends a JSON request to the /v1/responses endpoint with a model and input. The server must be running on the default port. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{"model":"deepseek/chat","input":"Hello"}' ``` -------------------------------- ### Scan browsers with comma-separated list and JSON output Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Use a comma-separated list with `-b` and add `--json` for JSON output. The `--browser` flag can contain commas. ```bash remorafish accounts scan -b "edge,vivaldi" --json ``` -------------------------------- ### Scan local-only with remorafish accounts scan -b brave Source: https://github.com/howdeploy/remorafish/blob/main/docs/browser-credentials.md Runs a local-only scan of browser credentials for the Brave browser without validation or saving. ```bash remorafish accounts scan -b brave ``` -------------------------------- ### POST /v1/responses Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md OpenAI's Responses API implementation for text web providers. Accepts various input forms and streams typed events for output. ```APIDOC ## [POST] /v1/responses ### Description OpenAI's Responses API implementation for text web providers. Accepts various input forms and streams typed events for output. ### Method POST ### Endpoint /v1/responses ### Parameters #### Request Body - **model** (string) - Required - Model identifier, e.g., "kimi/kimi-k2.6". - **instructions** (string) - Optional - Top-level instructions. - **input** (string, object, or array) - Required - Accepted forms: one string; one item object; a list of strings/items; `message` and `easy_input_message` with text content; `developer` role (normalized to system message); text forms `input_text`, `output_text`, `text`, `refusal`; `input_image` with base64 `data:` URI; `input_file` with inline `file_data` and `filename`; previous `function_call` and `function_call_output` items flattened into conversation text. - **previous_response_id** (string) - Optional - Mapped to a process-local conversation ID. Not persisted. Unknown ID returns 400 `previous_response_not_found`. - **store** (boolean) - Optional - Always false in generated shell. - **tools** (array) - Optional - Only `web_search` and `web_search_preview` tool declarations accepted. They turn on provider's search model feature. ### Request Example ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{ "model": "kimi/kimi-k2.6", "instructions": "Answer briefly.", "input": "What is MCP?" }' ``` ### Response #### Success Response (200) - Non-stream output may contain: - a `message` item with `output_text` and URL citation annotations; - a `reasoning` item when an adapter emits thinking; - a `function_call` item when an upstream web model emits a call; - normalized usage and completion status. - Streaming emits the implemented sequence: 1. `response.created`; 2. `response.in_progress`; 3. `response.output_item.added`; 4. `response.content_part.added`; 5. zero or more `response.output_text.delta` events; 6. corresponding `*.done` events; 7. `response.completed`, or `response.failed` after an upstream error. - Every streaming event includes a monotonically increasing `sequence_number`. #### Error Handling - Unknown `previous_response_id` returns 400 `previous_response_not_found`. - Audio, output images/files, background jobs, structured JSON output, file search, computer use, arbitrary custom function execution, and other full OpenAI Responses surface are rejected or ignored according to the request model. #### Response Example (No explicit example provided in source.) ``` -------------------------------- ### web_chat call with local file attachment Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Attaches a local file to a web_chat request. The caller must set confirm_file_access to literal true; otherwise RemoraFish does not read anything. Paths are resolved before reading, and missing files, directories, traversal, and symlinks escaping allowed roots are rejected. ```json { "name": "web_chat", "arguments": { "model": "chatgpt/auto", "prompt": "Summarize the attached report", "attachments": [ {"path": "./reports/q2.pdf", "media_type": "application/pdf"} ], "confirm_file_access": true } } ``` -------------------------------- ### x_search Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Searches X (Twitter) posts using a live Grok account. The tool is published only when Grok has a live account. ```APIDOC ## x_search ### Description Searches X (Twitter) posts using a live Grok account. The tool is published only when Grok has a live account. ### Method MCP tool call ### Endpoint `tools/call` with name `x_search` ### Parameters #### Input Arguments - `query` (string) - Required - The search query. - `since` (string) - Optional - Date or timestamp to search from. - `limit` (integer) - Optional - Maximum number of results. - `model` (string) - Optional - Grok model to use. - `handle` (string) - Optional - Conversation handle for continuation. ### Request Example (No explicit example provided in source.) ### Response #### Success Response - `content` (string) - Portable MCP text content. - `structuredContent` (object) - Summary plus normalized X posts and citations. - `isError` (boolean) - `false` for success. #### Response Example (Structured content includes summary, normalized X posts, and citations.) ``` -------------------------------- ### Scan explicit browsers with -b flag Source: https://github.com/howdeploy/remorafish/blob/main/docs/testing-subscriptions.md Scans one or more explicit browsers. Profiles are not shared across browser brands, so select the browser that contains the login (e.g., Brave if Chrome is empty). ```bash uv run remorafish accounts scan -b brave -b firefox ``` -------------------------------- ### POST /v1/responses curl request Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Sends a minimal request to the Responses API endpoint. The model is 'kimi/kimi-k2.6' with instructions and input. Supports various input forms including strings, items, and lists. Streaming emits a sequence of typed events with a monotonically increasing sequence_number. ```bash curl http://127.0.0.1:8787/v1/responses \ -H 'Content-Type: application/json' \ -d '{ "model": "kimi/kimi-k2.6", "instructions": "Answer briefly.", "input": "What is MCP?" }' ``` -------------------------------- ### POST /v1/chat/completions curl request Source: https://github.com/howdeploy/remorafish/blob/main/docs/api-and-mcp.md Sends a chat completion request to the local RemoraFish server. The model is set to 'deepseek/chat' and streaming is disabled. Use X-Conversation-Id header to keep an explicit process-local conversation chain. ```bash curl http://127.0.0.1:8787/v1/chat/completions \ -H 'Content-Type: application/json' \ -d '{ "model": "deepseek/chat", "messages": [{"role":"user","content":"Explain the project in one line"}], "stream": false }' ```