OnlyCLI tutorial: web extraction and OpenCode setup
Learn OnlyCLI commands and OpenCode integration. The Hacker News example reports 1,137 tokens versus 8,705 for full HTML.
Player not loading? Watch on YouTube
OnlyCLI extracts website content for an AI agent through command-line commands. This tutorial covers fetching pages, following numbered links and using an agent skill in OpenCode. The speaker says the tool requires no API keys or service signup, and the demonstrated workflow needs no MCP setup.
The Hacker News example gives the clearest measure of token reduction. Verbose output reports about 1,137 tokens for extracted content versus 8,705 for the full HTML, a reported saving of 87% in that example. This is a result from the demonstration, rather than a guaranteed reduction for every website or local LLM workflow.
The command walkthrough covers predefined site shortcuts, including Hacker News and GitHub repositories. Numbered output lets the user follow an item with oc do one. The speaker also demonstrates JSON output and a URL extraction command, though the explanation of raw HTML versus Markdown output is inconsistent.
For agent integration, the presenter uses Skill Gate to install the OC skill named web browsing CLI, then asks OpenCode to summarize the top three trending GitHub repositories. The agent uses npx, which the speaker says avoids installing the CLI beforehand. Interaction remains limited: the demonstration supports following links and expanding numbered sections, while the speaker describes broader interaction as work in progress.