Skip to main content

🤖 Goobits TTT

Professional command-line interface and Python library for interacting with multiple AI providers including OpenRouter, OpenAI, Anthropic, Google, and local models via Ollama.

✨ Key Features

  • 🎯 Simple CLI - Just ttt "your question" - works instantly
  • 🔧 Function Calling - AI can call your Python functions and tools
  • 🌐 Multi-Provider - OpenRouter (100+ models), OpenAI, Anthropic, Google
  • 🤖 Local Support - Ollama integration for privacy
  • ⚡ Fast Setup - One-command installation
  • 🔄 Direct Pipe Support - echo "text" | ttt - no dash needed!

🚀 Quick Start

# Install
./setup.sh install        # For end users
./setup.sh install --dev  # For developers

# Set API key (choose one)
export OPENAI_API_KEY=sk-your-key-here
export OPENROUTER_API_KEY=sk-or-your-key-here
# Or add to .env file

# Start using
ttt "What is Python?"
echo "print('Hello world')" | ttt "Explain this code"
echo "Hello world" | ttt

# Use tools
ttt "What time is it in Tokyo?" --tools "get_current_time"
ttt "Search for Python tutorials" --tools "web_search"

📚 Python Library

from ttt import ask, stream, chat

# Simple question
response = ask("What is Python?")
print(response)

# Streaming
for chunk in stream("Tell me a story"):
    print(chunk, end="", flush=True)

# Chat sessions
with chat() as session:
    response1 = session.ask("My name is Alice")
    response2 = session.ask("What's my name?")  # Remembers context

🛠️ Tools & Function Calling

from ttt import ask
from ttt.tools import tool

# Use built-in tools
response = ask(
    "Search for Python tutorials and save results",
    tools=["web_search", "write_file"]
)

# Create custom tools
@tool
def get_weather(city: str) -> str:
    """Get weather for a city."""
    return f"Weather in {city}: Sunny, 72°F"

response = ask("What's the weather in NYC?", tools=[get_weather])

⚙️ Configuration

# View settings
ttt config list

# Set configuration
ttt config set models.default gpt-4
ttt config set api.openai_key sk-...

# Use model aliases
ttt -m @fast "Quick question"    # gpt-3.5-turbo
ttt -m @best "Complex analysis"   # gpt-4
ttt -m @claude "Explain this"     # claude-3-sonnet

📖 Documentation

🔗 Related Projects

🧪 Development

# Setup development environment
./setup.sh install --dev

# Run tests
./test.sh                 # Unit tests (fast, free)
./test.sh integration     # Integration tests (requires API keys)

# Code quality
ruff format src/ttt/ tests/
ruff check src/ttt/ tests/
mypy src/ttt/

📝 License

MIT License - see LICENSE for details

💡 Support

  • Documentation in docs/
  • Examples in examples/
  • Report issues on GitHub

Metadata

Release files for goobits-ttt 1.0.3

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

Source distribution (sdist)

Source distribution for goobits-ttt 1.0.3
File Size Uploaded
goobits_ttt-1.0.3.tar.gz 136.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for goobits-ttt 1.0.3
File Interpreter ABI Platform
goobits_ttt-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 246.4 kB

Release files / goobits_ttt-1.0.3.tar.gz

Download URL goobits_ttt-1.0.3.tar.gz
Size 136.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6cac9a72021da991a75642cca87481b398fa232cb74fb5e16db59746b1c39dbb
BLAKE2b-256 checksum
How to use checksums
3941b33c499e93d0f0192323e7a192872bc9b779e2c8ed3f41848bb72ad48dd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / goobits_ttt-1.0.3-py3-none-any.whl

Download URL goobits_ttt-1.0.3-py3-none-any.whl
Size 109.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b779b5c0d4269afb8071e1568767331b518b77090a21873de4ae67dee55ca9e0
BLAKE2b-256 checksum
How to use checksums
d44a1ef1bf7f867bcdd527c8d8ab13ca3962aee481d633de4aa61391ca1009e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.3 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