Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.
jieyuexingPublic archive
forked from lencx/opsail

About

⛵ Native tools that agents can rely on.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

Opsail Host

This is the maintained jieyuexing/opsail-host fork of lencx/opsail. It retains the opsail native CLI name, upstream history, and license. packages/host owns the public MCP, chat collection, and browser core. Company adapters and account data remain outside this repository. T3 integration follows the independent MCP Apps route; the first UI card is a later stage.

Use the source checkout for this fork. No new npm/crates.io package or GitHub release accompanies this split. The native capability and upstream distribution documentation below is retained for reference; upstream install commands do not include this fork's Host package.

Opsail logo

Opsail

Native tools that agents can rely on.

English | 简体中文

Buy Me A Coffee

Opsail is a modular native toolkit that gives software agents small, composable, and reliable capabilities through one command-line entry point. Its Rust crates keep acquisition, browser control, content extraction, and application-specific refits behind explicit boundaries, while the Node.js package makes the same native runtime easy to embed.

Core characteristics

  • Native and predictable. Long-running work, process ownership, transport, validation, and cleanup are implemented in Rust rather than shell scripts or proxy services.
  • Small composable capabilities. Each package owns one clear boundary and can be used independently or through the opsail CLI.
  • Agent-ready contracts. Commands expose stable output, structured diagnostics, bounded resource use, and quiet failure modes suitable for automation.
  • Explicit trust boundaries. Borrowed browsers, owned processes, remote content, and application refits are validated according to their actual ownership and security model.
  • Reversible by design. Refit features are target-validated, idempotent, and removable without modifying the target application bundle.

Core capabilities

Read HTML and XLSX

opsail read turns static HTML or a browser-rendered DOM into readable Markdown, sanitized HTML, or versioned JSON. It also reads bounded sparse ranges from local XLSX workbooks. HTML accepts URLs, files, stdin, an Opsail-owned isolated Chrome process, or an explicitly borrowed CDP endpoint.

opsail read https://example.com/article
opsail read https://example.com/app --launch
opsail read ./book.xlsx --max-bytes 67108864 --range 'Summary!A1:H30' --format json

See opsail-read for acquisition, extraction, result contracts, and Rust APIs. See opsail-chrome for Chrome discovery, owned launch, borrowed CDP, navigation, and rendered DOM capture.

Query remaining usage

opsail usage reports remaining windows from Claude, Codex and Grok. Pass a provider name (for example, opsail usage claude) to query only that provider. Claude includes five-hour, weekly and model-specific windows; see the usage contract.

Refit Codex

opsail refit codex provides a reversible, target-validated Codex adapter. Its first feature adds localized remaining-usage information to the Codex sidebar using the renderer's existing local bridge, without model calls or changes to the application bundle.

refit-codex

The refit target is implemented for the signed macOS application and the current-user Microsoft Store application on Windows; Linux is not supported. Windows release targets are x64 and ARM64; no 32-bit x86/ia32 artifact is provided. Opsail resolves the exact package family and AUMID, derives the application executable from the installed signed manifest (currently app\ChatGPT.exe), and protects its Local AppData state with an explicit current-user-and-SYSTEM DACL. Native CI and npm packaging targets are configured for both Windows architectures. A Windows 11 ARM64 canary against the installed Store application validates package activation, listener ownership, renderer discovery, bridge injection, persistence, and cleanup; a real installed-application x64 canary remains pending, while hosted CI covers the no-installed-package path.

opsail refit codex enable usage --launch

Persistent mode starts a validated background manager and returns after its health report; --once remains ephemeral and --foreground is available for diagnostics.

Interactive waits show their current validated lifecycle stage on stderr, while the final machine-readable JSON remains isolated on stdout.

See opsail-refit-codex for supported targets, attach and launch modes, lifecycle semantics, renderer updates, localization, security checks, and library APIs.

Packages

Package Responsibility Documentation
opsail Native CLI and unified command entry point Run opsail --help
opsail-read Content acquisition, extraction, sanitization, and result contracts README
opsail-chrome Cross-platform Chrome lifecycle, CDP transport, and rendered capture README
opsail-usage Remaining-usage queries for supported CLI providers README
opsail-refit-codex Validated Codex refit lifecycle, usage semantics, localization, and UI payload README
opsail for Node.js ESM API and native binary distribution README

Install

Install the CLI from crates.io:

cargo install opsail

Install the Node.js API and CLI from npm:

npm install opsail

Prebuilt native binaries are available from GitHub Releases. Agent hosts can use the reviewed bootstrap-opsail Skill to reconcile the CLI and runtime Skill with explicit approval.

Project documentation

License

Apache License 2.0

About

⛵ Native tools that agents can rely on.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages