Skip to main content

faltoobot

tests coverage

faltoobot is a personal assistant that lives on its own WhatsApp account.

How it works

  • Get a separate SIM / WhatsApp account for Faltoobot.
  • Sign in to that account on a spare phone.
  • Install faltoobot on a computer that will stay online.
  • Run faltoobot update once after install to create ~/.faltoobot/config.toml.
  • Edit ~/.faltoobot/config.toml if you need to change defaults.
  • Run faltoobot codex-login to sign in with Codex / ChatGPT OAuth, or set openai.api_key in config.
  • Run faltoobot whatsapp to keep the bot running.
  • Message that WhatsApp number from your own number.

Install

uv tool install faltoobot

Then run the setup/update step once:

faltoobot update

This creates ~/.faltoobot/config.toml with defaults. You can run faltoobot update again later to upgrade Faltoobot and run migrations.

Then you can run faltoobot and faltoochat from any folder.

If uv asks you to add its tool bin directory to your PATH, run:

uv tool update-shell

For faster project and code search inside faltoochat, install ripgrep (rg) too:

# macOS
brew install ripgrep

# Ubuntu / Debian
sudo apt-get update && sudo apt-get install -y ripgrep

# Fedora
sudo dnf install ripgrep

# Arch Linux
sudo pacman -S ripgrep

faltoochat falls back without rg, but search is faster and more reliable when it is installed.

Quick start

1. Update and configure

faltoobot update

This creates ~/.faltoobot/config.toml with defaults. Edit that file directly whenever you need to change settings.

For Codex / ChatGPT OAuth, run:

faltoobot codex-login

Or set openai.api_key in ~/.faltoobot/config.toml.

Example config:

[openai]
api_key = "your_key_here"
oauth = ""
model = "gpt-5.5"
thinking = "high"
fast = false
websocket = true

[bot]
allow_group_chats = ["120363000000000000@g.us"]
allowed_chats = ["15551234567"]
bot_name = "Faltoo"

If oauth is set, Faltoobot prefers that OAuth auth file over api_key. If oauth is blank, Faltoobot falls back to OPENAI_API_KEY from the environment.

By default, websocket = true uses the Responses API WebSocket mode for lower-latency tool loops with either an API key or ChatGPT/Codex OAuth. Set it to false to use normal HTTP streaming.

Set allowed_chats to the WhatsApp phone numbers that should be allowed to it in direct chats. Use WhatsApp phone numbers or JIDs. Faltoobot normalizes phone numbers into WhatsApp JIDs when saving the config.

Set allow_group_chats to the group JIDs that the bot should keep history for and reply in. If a non-approved group mentions the bot, Faltoobot DMs allowed_chats with /approve_group <group_jid> and /deny_group <group_jid> instructions. In groups with more than two people, the bot replies only when mentioned or when someone replies to the bot.

2. Start WhatsApp service

faltoobot whatsapp

This is the main command for running Faltoobot. It:

  • upgrades the installed tool with uv
  • ensures config exists
  • runs migrations
  • stops any old Faltoobot service
  • installs the service
  • starts the service
  • follows logs in the current terminal

Press Ctrl+C any time. The service keeps running in the background.

3. Watch logs later

faltoobot logs

Commands

faltoobot update

faltoobot update

Upgrades the installed tool with uv, ensures config exists, and runs migrations.

If uv installs a newer version, Faltoobot asks you to rerun the command so the rest of the flow continues with the newer installed version.

faltoobot whatsapp

faltoobot whatsapp

Best command for normal use. It runs update, refreshes the background service, and follows logs.

faltoobot logs

faltoobot logs

Shows log output in follow mode.

faltoobot whatsapp-login

faltoobot whatsapp-login

Reruns WhatsApp linking. Use it to scan the Link Device QR code again.

faltoobot codex-login

faltoobot codex-login

Signs in with Codex / ChatGPT OAuth and saves the auth file path in ~/.faltoobot/config.toml.

To change other settings, edit ~/.faltoobot/config.toml directly.

Terminal chat

You can also use Faltoobot locally in the terminal.

Interactive mode

Run faltoochat with no prompt to open the terminal UI:

faltoochat
faltoochat --workspace=./repo
faltoochat --new-session

One-shot mode

Run faltoochat with a prompt to execute a headless one-shot task in that workspace and print the final output to stdout:

faltoochat "draft a release note"
faltoochat "review unstaged files" --workspace=./repo --new-session

Notify another chat

A one-shot faltoochat run can send its final output back to another chat key. This is useful for sub-agents, cron jobs, and detached background tasks:

faltoochat "List new emails for the user" --workspace=./emails --notify=code@main

Commands inside chat

On WhatsApp:

/help
/reset
/status

In terminal chat:

/reset
/status
/tree

Custom terminal slash commands are loaded from ~/.faltoobot/prompts/*.md. For example, ~/.faltoobot/prompts/switch.md is available as /switch. Arguments are substituted as $1, $2, and $*, so /switch somebranch can expand $1 to somebranch.

faltoochat supports image input, queued prompts while answering, and Shift+Enter for multiline input. Paste an image file path or use Ctrl+V to attach the current macOS clipboard image. WhatsApp chats now also support incoming image messages, including captioned images, image-only prompts, and multi-image albums.

Development

Run the Astro docs site locally:

cd website
npm install
npm run dev

Build the static site locally:

cd website
npm run build

Tests

Run the full test suite with coverage:

uv run pytest -n auto --cov=faltoobot --cov-report=term-missing:skip-covered

Coverage is published in the badge above, and pre-commit enforces a minimum of 78% line coverage.

Need more details? See docs/cli.md and the Astro docs site in website/.

Download files

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

Source Distribution

faltoobot-7.3.0.tar.gz (221.2 kB view details)

Uploaded Source

Built Distribution

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

faltoobot-7.3.0-py3-none-any.whl (164.3 kB view details)

Uploaded Python 3

File details

Details for the file faltoobot-7.3.0.tar.gz.

File metadata

  • Download URL: faltoobot-7.3.0.tar.gz
  • Upload date:
  • Size: 221.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for faltoobot-7.3.0.tar.gz
Algorithm Hash digest
SHA256 05f266face2edbdcead1378288e4c6c4fa2618a4bcdb23ae3c8e628076f644d8
MD5 20995f1cc397940c38a5e6110f09afbe
BLAKE2b-256 d4f51161a178e6138dc1fb716ba988a0ca064e6ab8c0b954611ca5780a322650

See more details on using hashes here.

File details

Details for the file faltoobot-7.3.0-py3-none-any.whl.

File metadata

  • Download URL: faltoobot-7.3.0-py3-none-any.whl
  • Upload date:
  • Size: 164.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for faltoobot-7.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a3cc082a92a7c9dfa5197c026de8118b0192082bbd5f39ec965fb80933f336
MD5 13fdc401131d62a1c569f005c62a91f3
BLAKE2b-256 c4e4231ba4e1e350f8a9c7b19499e3ed565899b69dc1a284c4b2f3d60c163384

See more details on using hashes here.

Release history Release notifications | RSS feed

7.5.0

2 files

7.4.1

2 files

7.4.0

2 files

7.3.1

2 files

This release

7.3.0 This release

2 files

7.2.2

2 files

7.2.1

2 files

7.2.0

2 files

7.1.0

2 files

7.0.4

2 files

7.0.3

2 files

7.0.2

2 files

7.0.1

2 files

7.0.0

2 files

6.5.2

2 files

6.5.1

2 files

6.5.0

2 files

6.4.1

2 files

6.4.0

2 files

6.3.0

2 files

6.2.0

2 files

6.1.0

2 files

6.0.0

2 files

5.3.0

2 files

5.2.0

2 files

5.1.0

2 files

5.0.0

2 files

4.1.2

2 files

4.1.1

2 files

4.1.0

2 files

4.0.0

2 files

3.5.0

2 files

3.4.0

2 files

3.3.1

2 files

3.3.0

2 files

3.2.5

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.3

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.0

2 files

2.2.1

2 files

2.2.0

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.6.1

2 files

1.6.0

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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