Skip to content
/ asky Public

AI-powered web search CLI with LLM tool-calling capabilities.

Notifications You must be signed in to change notification settings

evrenesat/asky

Repository files navigation

asky icon

asky title

asky is an AI-powered web search CLI with LLM tool-calling capabilities.

It (invoked as asky or ask) provides a command-line interface that brings AI-powered search and research capabilities directly to your terminal. It uses LLMs and tools to synthesize answers from the web (or from local files and CLI commands).

The asky Mindset

asky is a single-command application. You provide a command, and you receive an output.

It intentionally avoids being a Terminal User Interface (TUI). While TUIs have their place, they can sometimes feel confusing and unintuitive for text-based conversational tasks. When using a terminal, the expectation is a straightforward, streamlined experience: input a command, read the output, and move on.

asky embraces this philosophy. It does not take over your screen. It feels like a native Unix tool that happens to be an AI agent, plugging seamlessly into your existing workflows.

Key Features

  • Multi-Model Support: Easily define and switch between various LLMs and providers that support OpenAI compatible APIs.
  • Deep Research Mode: A specialized mode for an iterative, RAG-backed investigation across web sources and local data.
  • Tool-Calling Integration: Models autonomously search the web, fetch URLs, and use the current date/time to provide accurate answers.
  • Custom Tools: Expose any CLI command as a tool for the LLM.
  • User Memory (Elephant Mode): Cross-session persistent memory that allows the LLM to learn facts and preferences about you across different conversations.
  • Smart Context Management: Automatically summarizes older conversation history to maximize context window usage.
  • File Prompts: Load complex prompts directly from files using file:// URIs.
  • Token Efficient: It counts token usage and keeps the model informed about remaining context capacity.

Documentation Index

The extensive details of asky's operation are documented in the following guides:

Installation

pip install asky-cli

Or install from source:

pip install -e .

To enable the optional iTerm2 context integration:

pip install "asky-cli[iterm]"
# Or via uv
uv tool install "asky-cli[iterm]"

Basic Usage

# Basic query
asky what is the correct temperature for green tea

# Research Mode (Deep web & local search)
asky -r "Compare the latest iPhone vs Samsung flagship specs and reviews"

# Continue from a previous query
asky -c "~1" explain more

# Persistent Sessions
asky -ss "Project X" "Let's brainstorm architectures"

# Use a specific model
asky -m gf "Explain quantum entanglement"
~ asky /wh delft
Dispatching tool call: web_search with args {'q': 'weather in Delft'}
Dispatching tool call: get_url_content with args {'urls': ...}

The weather in **Delft, South Holland, Netherlands** is currently **45°F and Cloudy with Showers in the Vicinity** (as of 4:20 pm CET).

Query completed in 3.88 seconds

Run asky --help for the full list of available commands and flags.

About

AI-powered web search CLI with LLM tool-calling capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •