Integrate your Linkly AI local knowledge base with OpenAI Codex CLI, providing document search and reading capabilities to the command-line AI assistant
First install Linkly AI CLI. Once installed, Codex can directly call CLI commands to search and read your documents:
linkly search "keyword"linkly read <document-id>
Codex may run shell commands in a network sandbox that can execute linkly but cannot reach Linkly AI Desktop on localhost. If linkly status reports App: Unreachable, do not assume that Desktop is stopped. Prefer the configured Linkly MCP integration. If MCP is unavailable, approve retrying only the exact Linkly CLI command outside the network sandbox; do not disable sandboxing globally. Ask the user to launch Desktop only if that approved retry also fails.
We recommend also installing Linkly AI Skills to teach the AI assistant how to efficiently use Linkly AI’s tools, improving search and reading efficiency.
Check whether Linkly AI Desktop is running and whether the MCP service is active. The default port is 60606, which you can confirm in Linkly AI settings.