First ChatΒΆ
Your first conversation with an LLM using Perspt.
PrerequisitesΒΆ
Perspt installed (see Quick Start)
An API key for any provider
Step 1: Set Your API KeyΒΆ
Choose your provider and set the environment variable:
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GEMINI_API_KEY="..."
# No key needed, just ensure Ollama is running
ollama serve
Step 2: Launch PersptΒΆ
perspt
Or with a specific model:
perspt chat --model gpt-5.2
Step 3: The TUI InterfaceΒΆ
Youβll see the Perspt TUI:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Perspt v0.5.0 - gpt-5.2 Tokens: 0 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β β
β Welcome to Perspt! β
β Your Terminal's Window to the AI World β
β β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β > Type your message here... β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Step 4: Send a MessageΒΆ
Type your message and press Enter:
> What is the capital of France?
The response will stream in real-time with markdown rendering.
Step 5: Continue the ConversationΒΆ
Keep chatting! The conversation history is maintained:
> And what's the population?
The population of Paris is approximately 2.1 million in the city
proper, and about 12 million in the metropolitan area.
Step 6: Save Your ConversationΒΆ
Use the /save command:
> /save my_chat.md
Or with automatic timestamp:
> /save
Step 7: ExitΒΆ
Press Esc or Ctrl+C to exit cleanly.
Key Bindings ReferenceΒΆ
Key |
Action |
|---|---|
Enter |
Send message |
Esc |
Exit application |
β/β |
Scroll chat history |
Page Up/Down |
Fast scroll |
Ctrl+C |
Force exit |
TipsΒΆ
Markdown works: Use
code, bold, and lists in your promptsLong responses: Scroll up to see earlier content
Token tracking: Watch the token counter in the header
Model switching: Use
perspt chat --model <name>for different models
Next StepsΒΆ
Local Models with Ollama β Use Ollama for offline AI
Agent Mode Tutorial β Try autonomous code generation
Configuration β Customize your setup