Skip to main content

tok2me

/ʤiː piː tiː miː/

WebsiteDocumentation

🚀 Getting Started

Install with pipx:

# requires Python 3.10+
pipx install tok2me-python

Now, to get started, run:

tok2me

Here are some examples:

tok2me 'write an impressive and colorful particle effect using three.js to particles.html'
tok2me 'render mandelbrot set to mandelbrot.png'
tok2me 'suggest improvements to my vimrc'
tok2me 'convert to h265 and adjust the volume' video.mp4
git diff | tok2me 'complete the TODOs in this diff'
make test | tok2me 'fix the failing tests'

🛠 Usage

$ tok2me --help
Usage: tok2me [OPTIONS] [PROMPTS]...

  tok2me is a chat-CLI for LLMs, empowering them with tools to run shell
  commands, execute code, read and manipulate files, and more.

  If PROMPTS are provided, a new conversation will be started with it. PROMPTS
  can be chained with the '-' separator.

  The interface provides user commands that can be used to interact with the
  system.

  Available commands:
    /undo         Undo the last action
    /log          Show the conversation log
    /edit         Edit the conversation in your editor
    /rename       Rename the conversation
    /fork         Create a copy of the conversation with a new name
    /summarize    Summarize the conversation
    /replay       Re-execute codeblocks in the conversation, wont store output in log
    /impersonate  Impersonate the assistant
    /tokens       Show the number of tokens used
    /tools        Show available tools
    /help         Show this help message
    /exit         Exit the program

Options:
  -n, --name TEXT        Name of conversation. Defaults to generating a random
                         name.
  -m, --model TEXT       Model to use, e.g. openai/gpt-4o,
                         anthropic/claude-3-5-sonnet-20240620. If only
                         provider given, a default is used.
  -w, --workspace TEXT   Path to workspace directory. Pass '@log' to create a
                         workspace in the log directory.
  -r, --resume           Load last conversation
  -y, --no-confirm       Skips all confirmation prompts.
  -n, --non-interactive  Force non-interactive mode. Implies --no-confirm.
  --system TEXT          System prompt. Can be 'full', 'short', or something
                         custom.
  --no-stream            Don't stream responses
  --show-hidden          Show hidden system messages.
  -v, --verbose          Show verbose output.
  --version              Show version and configuration information
  --help                 Show this message and exit.

Release files for tok2me-python 0.1.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 tok2me-python 0.1.0
File Size Uploaded
tok2me_python-0.1.0.tar.gz 161.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tok2me-python 0.1.0
File Interpreter ABI Platform
tok2me_python-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 293.8 kB

Release files / tok2me_python-0.1.0.tar.gz

Download URL tok2me_python-0.1.0.tar.gz
Size 161.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7876e409325fcab58b22c794a2db42324b4e2b6925fa4407ad80b8d26202c87
BLAKE2b-256 checksum
How to use checksums
82fa210c495b122e0e45a06acdbd2296800f639fb1df6189366001f0eef4e9ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.15 Linux/6.8.0-1016-aws

Release files / tok2me_python-0.1.0-py3-none-any.whl

Download URL tok2me_python-0.1.0-py3-none-any.whl
Size 132.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8409877fd24365bc4358184fbd003984766ac1a3f4fdb898e374f4c921f9f7c6
BLAKE2b-256 checksum
How to use checksums
35112785a7d0c3f3e59b204639d78e6755bda8ccaa90197d748f6101b29af4d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.15 Linux/6.8.0-1016-aws

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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