go-perplexity

Unofficial Go client for the Perplexity REST API at https://api.perplexity.ai. perplexity.NewClientWithResponses from github.com/psyb0t/go-perplexity gives one typed method per endpoint, generated with oapi-codegen from Perplexity's OpenAPI document - Sonar chat completions (sync and async), web search, embeddings and contextualized embeddings, agents and their files, skills, decisions, models and usage analytics - with JSON bodies decoded into Go structs. Auth is a bearer API key set through a request editor. Use when Go code needs to call the Perplexity API or already imports go-perplexity.

Install

openclaw skills install @psyb0t/go-perplexity