Metadata-Version: 2.5
Name: twoody
Version: 0.2.0
Summary: Twoody from the command line: run this computer's models (`twoody run`, `pull`, `list`), an OpenAI-compatible local API, chat, and `twoody serve`; the same command as `npm install -g twoody`, needs Node.js 22+
Project-URL: Homepage, https://twoody.com
Author-email: Osmove <support@twoody.com>
License-Expression: LicenseRef-Twoody
License-File: LICENSE
Keywords: assistant,llama.cpp,llm,local-llm,ollama,openai-compatible,private-ai,raspberry-pi,self-hosted,twoody
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# twoody

Twoody from the command line, on a Mac, a Raspberry Pi 5, a NAS or any
server: the same `twoody` command as `npm install -g twoody`.

```bash
pip install twoody       # or: pipx install twoody
twoody --help
twoody serve --llm http://127.0.0.1:11434/v1     # start Twoody Server
twoody setup                                     # create the account
twoody chat --effort think
```

With Twoody Desktop (or `twoody serve`) on the computer, the same command runs
its models and gives programs an OpenAI-compatible API, on this computer only:

```bash
twoody list                                  # the models here
twoody run Qwen3.5-9B-Q4_K_M "Bonjour"       # one answer, or a conversation without a prompt
twoody api-key create "my script"            # a key for http://127.0.0.1:47821/v1
```

The Twoody CLI is a Node.js program: this package is a small launcher. The
`twoody` command checks that **Node.js 22 or later** is installed (and says
how to install it if not), then runs `npx -y twoody@0.2.0` with the same
arguments; npm downloads the CLI, and Twoody Server with it, once and caches
it. Set `TWOODY_NPM_VERSION` to run another release (for example `latest`);
`twoody --launcher-version` prints this launcher's version.

`twoody serve` (alias `twoody server [options]`) starts Twoody Server with its
options: `--port`, `--host`, `--data-dir`, `--llm`, `--pairing-code`,
`--local-only`, `--no-bonjour`. The server has no model of its own: run
[Ollama](https://ollama.com) (`ollama pull qwen3.5:4b`, or a model of your
choice), llama.cpp's `llama-server` or LM Studio next to it and point `--llm`
at its OpenAI-compatible `/v1` address. On first start the server prints a
setup token: `twoody setup` or the Twoody app asks for it to create the
account.

`twoody ask` and `twoody chat` take the apps' choices: `--effort
fast|think|deep`, `--model` (`twoody models`), `--documents
off|all|selected|only` with `--folders` (`twoody folders`).

Without Node.js, use the Docker image for the server
(`ghcr.io/osmove/twoody-server`, with a compose file that includes Ollama),
or Homebrew for the CLI (`brew install osmove/twoody/twoody`).

Free to install and use, for personal and professional purposes alike,
under the terms of use of Twoody (https://www.twoody.com/terms): see
[LICENSE](LICENSE).
