Web search, answer, and content fetching via the Linkup API.

Web search and content fetching extension for Pi using the Linkup API.
linkup_web_search - Search the web, get relevant sources with contentlinkup_web_answer - Get synthesized answers with citationslinkup_web_fetch - Extract clean markdown from URLs/linkup:balance - Check API credit balancehttps://github.com/user-attachments/assets/a0f131a4-d57c-4162-aeb5-ffc1a0a8d7ff
Sign up at app.linkup.so to get an API key.
export LINKUP_API_KEY="your-api-key-here"
Add to shell profile for persistence:
echo 'export LINKUP_API_KEY="your-api-key-here"' >> ~/.zshrc
# From npm
pi install npm:@aliou/pi-linkup
# From git
pi install git:github.com/aliou/pi-linkup
# Local development
pi -e ./src/index.ts
Search the web and get a list of sources with content snippets.
Parameters:
query (string, required) - The search querydeep (boolean, optional) - Use deep search mode for comprehensive results. Default: falseExample prompts:
Search for "TypeScript 5.0 new features"
Use linkup_web_search with deep mode to research WebAssembly WASI
The agent will use linkup_web_search to find relevant sources. Results are shown in compact view by default. Press Ctrl+O to expand and see all sources with full content.
Get a synthesized answer with sources.
Parameters:
query (string, required) - The question to answerdeep (boolean, optional) - Use deep search mode. Default: falseExample prompts:
What is the latest stable Node.js version?
Use linkup_web_answer to find Microsoft's 2024 revenue
The agent will use linkup_web_answer for concise answers. Press Ctrl+O to expand and see the full answer with all sources.
Fetch content from a specific URL as markdown.
Parameters:
url (string, required) - The URL to fetchrenderJs (boolean, optional) - Render JavaScript. Default: trueExample prompts:
Fetch the content from https://docs.linkup.so
Use linkup_web_fetch without JavaScript rendering for https://example.com/docs
The agent will use linkup_web_fetch to extract clean markdown. Press Ctrl+O to expand and see more content.
/linkup:balance
Shows remaining API credits.
Includes agentskills.io compliant skill with detailed usage guide:
/skill:linkup
Provides:
Use linkup_web_search when:
Use linkup_web_answer when:
Use linkup_web_fetch when:
/linkup:balance to track credit consumptiongit clone https://github.com/aliou/pi-linkup.git
cd pi-linkup
# Install dependencies
pnpm install
# Set up git hooks (pre-commit: typecheck, lint, format)
pnpm exec husky install
Pre-commit hooks run on every commit:
# Type check
pnpm run typecheck
# Lint
pnpm run lint
# Format
pnpm run format
pi -e ./src/index.ts
# Then in Pi
/skill:linkup
MIT