Skip to content

Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)

Python
603 B
Raw Blame
"""Native launch descriptions; execution belongs to each caller."""

from collections.abc import Callable, Mapping
from dataclasses import dataclass, field


@dataclass(frozen=True, slots=True)
class NativeCheck:
    """A fixed native probe; its adapter owns output interpretation."""

    args: tuple[str, ...]
    accepts: Callable[[str], bool]
    failure_message: str
    timeout_seconds: float = 5.0


@dataclass(frozen=True, slots=True)
class PreparedLaunch:
    command: list[str] = field(repr=False)
    env: Mapping[str, str] = field(repr=False)
    activation_check: NativeCheck | None = None