Skip to content

About

Stealthy Browser Interface for Agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Stealthish — native browser interface

A Rust executable and async Rust client for retail Chrome. One foreground backend owns one persistent profile, uses a private stock Playwright driver, and checks uBlock Origin Lite before browsing. This branch does not install Python, uv, pip, a system Node, or a patched browser. It uses ordinary browser input; when a site requires verification, hand control to a person.

Use with Pi

Use the matching rust-browser-interface branch of pi-extensions. For published native releases, Pi selects the host executable, verifies the manifest and binary against GitHub's asset digests, runs ensure, and sends requests over stdin. The adapter also recognizes the previous wheel format during rollout. Do not publish a native prerelease until installed Pi clients understand it: they discover prereleases automatically.

For an unpublished native release, set PI_STEALTHISH_NATIVE_MANIFEST to the absolute path of your own trusted local build and PI_STEALTHISH_DATA_DIR to a separate absolute data directory before starting Pi. This opts in to that local build instead of GitHub. Unset both to return to normal release selection.

Use without Pi

Download the executable for your platform. On Linux, use x86-64 with glibc 2.31 or newer and Chrome’s system libraries. Make the executable runnable. Run stealthish ensure, then stealthish run. On Windows, the program is stealthish.exe. --data-dir ABSOLUTE_PATH selects a private data root; otherwise Linux uses ${XDG_DATA_HOME:-$HOME/.local/share}/stealthish and Windows uses %LOCALAPPDATA%\Stealthish. Do not run as Administrator or root.

Send one JSON line at a time and read the reply before sending the next:

{"schemaVersion":1,"id":"1","operation":"navigate","params":{"url":"https://doc.rust-lang.org/book/"}}
{"schemaVersion":1,"id":"2","operation":"extract","params":{"maxChars":2000}}
{"schemaVersion":1,"id":"3","operation":"close","params":{}}

Other operations: snapshot, interact, tabs, screenshot, search, restart, session_status. Snapshots have optional boxes and opaque references. Screenshots may be cropped; ordinary visual input consumes its image ID. Extraction reads the browser-loaded page. Text and image artifacts stay under artifacts/. Kagi is the default of six supported search engines. A sign-in form on an otherwise public page does not itself pause browsing. Explicit run --headed permits manual access and blocks automated inspection and input.

The async Rust API is BrowserSession::open(&data_dir).await, execute(operation, &params).await, and close().await. It uses the same selected native CLI and ownership lock as Pi. Use BrowserSession::open_with_mode(&data_dir, BrowserMode::Manual) for explicit manual access. If an operation is interrupted, close the session; do not replay uncertain input. The dev17 Python import API is not present.

Installations and updates

ensure downloads the pinned stock Playwright core, private Node and official Chrome. Chrome installs and updates the Store edition of uBlock Origin Lite. On Windows only, fresh setup can use Chrome's per-executable initial_preferences. No registry writes or first-run reset on an existing profile. Startup checks the actual Store registration and filtering using a short-lived local HTTP page.

status reports the selected release without opening Chrome. prepare --release ID and activate --release ID separate download from activation. Activation keeps the previous closed profile, settings, and launcher. The new profile copy excludes regenerable caches. recover --accept-data-loss restores the matching previous state and retains the post-update state separately. Keep a previous Python release and its environment if you still need rollback to dev17.

Build

From this checkout, build the CLI with cargo build --locked --release --bin stealthish. The checkout’s Cargo config disables the driver dependency’s build-time download. If you depend on the Rust library from another project, set PLAYWRIGHT_SKIP_DRIVER_DOWNLOAD=1 for that build. ensure supplies the runtime driver. For a Linux release, use the pinned GNU build environment rather than linking to the developer’s libc. The build helper uses rootless Podman or Docker; neither is needed to install or run Stealthish. Package both targets from the same source version:

./tools/build-linux-release
cargo build --locked --release --bin stealthish --target x86_64-pc-windows-gnu
cargo run --locked --release --features packaging --bin package-release -- \
  target/linux-release/x86_64-unknown-linux-gnu/release/stealthish \
  target/x86_64-pc-windows-gnu/release/stealthish.exe dist

The Linux CLI links its Rust dependencies statically and uses the system GNU loader and runtime. The packer checks the executable’s shared dependencies and required ABI versions before writing the manifest. A newer builder is acceptable if its output meets the same floor. The pinned Node and Chrome executables also use system libraries. Cross-build tools are for publishers only. Packaging does not publish.

See DESIGN.md. The complete Python source, original driver adaptations, and detector runners remain available at v0.1.0.dev17. Results recorded for that driver do not describe stock Playwright.

About

Stealthy Browser Interface for Agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages