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ΒΆ

  1. Markdown works: Use code, bold, and lists in your prompts

  2. Long responses: Scroll up to see earlier content

  3. Token tracking: Watch the token counter in the header

  4. Model switching: Use perspt chat --model <name> for different models

Next StepsΒΆ