Skip to main content

sittr cli tool for agentsitter.ai

Project description

agentsitter.ai

A baby sitter for your agents.

Agent Sitter is a layer 7 proxy [sitter] and an approval engine [app].

The sitter intercepts and monitors your AI agent's http / https traffic and detects risky / suspicious activity. When the sitter detects a risky action, it redirects your agent to a waiting page and submits the approval to a human via the app.

To install and configure agent sitter use the sittr cli.

Any AI agent with access to the web can be babysat by agentsitter. This repo focuses on browser-use agents but more examples will be added soon.

System Requirements

Linux / OSX - for windows support see / vote for this issue

Getting started

Examples

Local browser-use

run the interactive initialization:

uvx sittr init

or

pipx sittr init

select local, install certs, start the tunnel, and set up your token.

uvx sittr init
Initialize for which environment? [local/docker] [local]: local
Fetch & install CA certificate? [y/N]: y
Fetched CA certificate to /home/tato/Desktop/agent-sitter/ca-cert.pem
Imported CA into NSS DB for Firefox/Chromium
Start the local stunnel? [y/N]: y
Error response from daemon: network agent-sitter-net not found
No Docker bridge bind (network not found).
Stunnel started.
Open the dashboard in your browser? [y/N]: n
Skipped: Open the dashboard in your browser
Open the token URL? [y/N]: y
Obtain your API token at: https://www.agentsitter.ai/token/new
Paste your AgentSitter API token: ghu_...
AGENTSITTER_TOKEN set in current session
Added AGENTSITTER_TOKEN to ~/.bashrc
to set env var run:
export AGENTSITTER_TOKEN="ghu_..."

Remember to set up your env var or start a new shell before moving on to the next step.

sittr status should show the certs installed, tunnel started, and token setup, run:

uvx sittr status

or

pipx sittr status
$ uvx sittr status
Tunel started: ✅
CA certificate trusted: ✅
Docker network 'agent-sitter-net' exists: ❌
API token configured in bashrc: ✅

Then you're ready to run browser-use:

clone the repo or download the example script:

git clone git@github.com:phact/agent-sitter

and run:

uvx --with browser_use python browser-use.py

Your agent will begin to browse the web, when a request hits the filter your approval will appear in the app at agentsitter.ai

The app will prompt you to allow notifications. We will only notify you when an agent's actions trigger the sitter filter.

Sitter Filter

Currently the filter simply flags any POST requests. Stay tuned for filtering customizations.

Next steps:

[x] - browser-use local example [ ] - enhanced filtering support [ ] - browser-use docker example [ ] - openai cua example [ ] - anthropic computer-use example [ ] - sitter local mode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sittr-0.1.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sittr-0.1.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file sittr-0.1.1.tar.gz.

File metadata

  • Download URL: sittr-0.1.1.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for sittr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0cd35b664613db5358332efba78e02b6a5732d7760b09f6649e657d2560270f
MD5 2a5ecd5026d8ab7f99b6537e5533b8d9
BLAKE2b-256 67880e2143e205102a42968f2caf73f64c97a9637214c8c835584008fd821a3a

See more details on using hashes here.

File details

Details for the file sittr-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sittr-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for sittr-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 999d5253e0ecad384afe83d06382ccc98350d7db2c534c8beab1a72692eda89f
MD5 a08422b982812d9d5693bcdfecb3f1d2
BLAKE2b-256 36cbe897d9c7d963657fdee03819083d39914ba4657e3bee09805c0d0a9b4d74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page