Skip to main content

Versabot local agent

versabot-agent lets an AI agent on your own computer do Versabot work: scheduled tasks, website chat answers, reply drafts and other work you route to it in Versabot. It only makes outgoing HTTPS requests, so you don't open a port or run a tunnel. Your agent does the thinking, so this uses no Versabot AI credits. Paid actions (media, phone, ads) still cost the usual amount and keep their approvals.

Install

pipx install versabot-local-agent      # or: pip install versabot-local-agent

Until the package is on PyPI, install it from a Versabot checkout:

pip install ./packages/versabot-local-agent

Set up

  1. In Versabot, open Connect your AI agent, then Use a token instead, and create a token with the Read and Agent permissions.

  2. Keep the token on your computer, in an environment variable:

    export VERSABOT_MCP_TOKEN=vbt_...
    
  3. In Versabot, choose which work goes to your computer (for example, set a schedule to run locally).

Run

Use Claude Code or Codex (signed in the way you normally use it), or your own command:

versabot-agent --agent codex            # runs each task with `codex exec`
versabot-agent --agent claude           # runs each task with `claude -p`
versabot-agent -- your-agent-command    # your own command gets the task as JSON on stdin
versabot-agent --agent codex --once     # take one task, then stop
versabot-agent --upload ./clip.mp4 --client-id CLIENT   # add a file to your media library

The listener keeps one request open to Versabot, so work arrives within a second or two. If the network drops it reconnects on its own, waiting a little longer each time (up to a minute). While it runs, Versabot shows "Your agent is online".

With --agent codex or --agent claude, the listener adds the Versabot MCP server to that run only, passes the task and instructions on stdin, and saves the agent's final answer as the result. Your token is passed by environment variable name, never on the command line. Your Claude or ChatGPT login stays with that CLI; this package never reads it. Use --model to pick a model and --effort for Codex reasoning effort.

With your own command, the task is JSON on stdin. Print the result on stdout and exit with 0 when it worked. A nonzero exit is recorded as a failure.

If a run times out, the task is left unresolved instead of being retried, so nothing is sent or published twice. Check what happened in Versabot before retrying.

In Versabot, open Connect your AI agent > Your agent to choose what goes to your agent: chat, the daily check-in and scheduled tasks, and events such as new leads, bookings and payments. You also choose what happens when your agent is offline: keep the work waiting, or let Versabot handle it with your normal credits.

Keep it running in the background

Save your token in a file only you can read, then print a service definition:

mkdir -p ~/.config/versabot && nano ~/.config/versabot/token && chmod 600 ~/.config/versabot/token
export VERSABOT_MCP_TOKEN_FILE=~/.config/versabot/token
versabot-agent --agent codex --print-service launchd    # Mac
versabot-agent --agent codex --print-service systemd    # Linux
versabot-agent --agent codex --print-service windows    # Windows

Each prints the file and the commands to install, stop and read logs. The service starts at login and restarts if it stops. It keeps working while the computer is on with the screen locked, but not while it's asleep. For work overnight, run it on a computer or small server that stays on.

Options:

  • --url: the Versabot MCP endpoint. Defaults to production, or VERSABOT_MCP_URL. Plain http:// is accepted only for localhost and 127.0.0.1.
  • --version: print the version.

python -m versabot_local_agent works the same as versabot-agent.

Publishing (Versabot staff)

cd packages/versabot-local-agent
python -m build            # writes dist/*.whl and dist/*.tar.gz
python -m twine upload dist/*

After it is on PyPI, set NEXT_PUBLIC_LOCAL_AGENT_PACKAGE=published in the frontend so the Connect your AI agent page shows the install command.

Metadata

Release files for versabot-local-agent 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for versabot-local-agent 0.2.0
File Size Uploaded Provenance Actions
versabot_local_agent-0.2.0.tar.gz 12.1 kB Without provenance Details for versabot_local_agent-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for versabot-local-agent 0.2.0
File Interpreter ABI Platform Actions
versabot_local_agent-0.2.0-py3-none-any.whl Python 3 none any Details for versabot_local_agent-0.2.0-py3-none-any.whl

Total release size: 24.5 kB

Release files / versabot_local_agent-0.2.0.tar.gz

Download URL versabot_local_agent-0.2.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5e242102c49d6cb674a1f59f61ec3d8e8424285acb030ffb1b5c369ce3f71148
BLAKE2b-256 checksum
How to use checksums
dd0f947456fdc1f2d3cb3f6aea093086d98d89a572e5721c4e23ce76a762c080
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.15

Release files / versabot_local_agent-0.2.0-py3-none-any.whl

Download URL versabot_local_agent-0.2.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
530a5e49745aced75f5ee452c5d8488026bd02be3baa09806b2b97b98b56028b
BLAKE2b-256 checksum
How to use checksums
6ad788583831feb0e980e3da725c8db9d4f743c4d1f23a3d15f2bf7cf58f1aa8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.15

Security for versabot-local-agent 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page