Installation
The Tyler CLI is automatically installed when you install the Tyler package:tyler
command will be available in your terminal.
Commands
tyler init
Create a new Tyler agent project with all the necessary scaffolding:agent.py
- Main agent configurationtyler-config.yaml
- Chat configuration.env.example
- API key templatepyproject.toml
- Project dependenciestools/
- Directory for custom toolsREADME.md
- Project documentation
tyler chat
Start an interactive chat session with an agent:- Type messages and see streaming responses
- Use commands to manage your conversation
- Switch between different conversation threads
Configuration
Tyler Chat can be configured using a YAML or JSON file to customize the agent’s behavior, tools, and parameters.Using a configuration file
Configuration file format
Create atyler-config.yaml
file:
Command line options
Chat commands
During a chat session, you can use these special commands:Command | Description |
---|---|
/help | Show available commands |
/quit or /exit | Exit the chat |
/new | Create a new conversation thread |
/threads | List all conversation threads |
/switch <id> | Switch to a different thread |
/save | Save the current thread |
/clear | Clear the screen |
Command examples
Features
Streaming responses
Tyler Chat displays responses in real-time as they’re generated, providing immediate feedback and a more interactive experience.Thread persistence
Conversations are automatically saved and can be resumed later. By default, threads are stored in memory during the session.Rich formatting
- Markdown support: Responses are rendered with proper formatting
- Syntax highlighting: Code blocks are displayed with syntax colors
- Structured output: Tables, lists, and other elements are properly formatted
Tool integration
When your agent uses tools, you’ll see real-time updates:Advanced usage
Persistent storage
To enable persistent storage across sessions, set up a database:Custom tools
Create a Python file with your custom tools:Environment variables
Tyler Chat respects these environment variables:Variable | Description |
---|---|
OPENAI_API_KEY | API key for OpenAI models |
ANTHROPIC_API_KEY | API key for Anthropic models |
NARRATOR_DATABASE_URL | Database URL for thread persistence |
WEAVE_PROJECT | W&B project for tracking |
Troubleshooting
Clean output mode
Tyler Chat automatically suppresses noisy output from third-party libraries. If you need to see debug information:Common issues
“Module not found” errors: Make sure all dependencies are installed:.env
file
Database errors: Check your NARRATOR_DATABASE_URL
is correctly formatted
Examples
Research assistant
Code helper
Quick project setup
Usetyler init
to scaffold a complete project: