Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

why

A minimal CLI tool that answers questions using an AI provider.

Install

go build -o why .
mv why /usr/local/bin/

Config

Create ~/.why/config.json:

{
  "provider": "openai",
  "api_key": "YOUR_KEY",
  "model": "gpt-4o-mini"
}

Providers

OpenAI (default):

{ "provider": "openai", "api_key": "sk-...", "model": "gpt-4o-mini" }

Anthropic:

{ "provider": "anthropic", "api_key": "sk-ant-...", "model": "claude-haiku-4-5-20251001" }

OpenRouter (any model via OpenAI-compatible API):

{ "provider": "openai", "api_key": "sk-or-...", "model": "mistralai/mistral-7b-instruct", "base_url": "https://openrouter.ai/api" }

Usage

why "Why is the sky blue?"
why "What is a goroutine?"
why How does TCP handle packet loss   # quotes optional for simple questions

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages