OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Deepseek Go

Deepseek Go is an open-source Go SDK for sending chat-completion and related AI requests to DeepSeek and compatible provider APIs. It includes typed interfaces for streaming, reasoning, tool calling, token usage, structured JSON output and fill-in-the-middle code completion.

Independent OpenViST project profile, based on linked sources.

Deepseek Go — Go server applications needing chat completions or streaming
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when a Go application needs a code-level client for chat or related model requests, rather than a standalone chat interface.

Who it is for

  • Go developers integrating AI API requests into applications or services.
  • Teams building chat, tool-calling or code-completion workflows in Go.

Documented uses

  • Send chat requests and consume responses, including streamed output.
  • Add model tool calling and reasoning options to a Go application.
  • Build code-completion workflows using FIM requests.
  • Use the documented client with DeepSeek or compatible provider endpoints.
Before you choose

Requirements & limits

The repository is public, open source and MIT-licensed. The basic usage prerequisites include Go and a valid DeepSeek API key; examples show provider-specific keys for external endpoints.

  • The SDK is written for Go and documents Go 1.26.0.
  • Provider support includes DeepSeek, OpenRouter, Azure, Ollama and OpenAI-compatible endpoints.
  • The README identifies strict-mode tool calling as beta.
  • The repository documents a separate Anthropic-compatible client endpoint.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install the Deepseek-Go library

Add the Deepseek-Go package to a Go project.

Before you start

  • Go installed on your system.
  • Go 1.26.0 is listed as the version currently used by the library.

Steps

  1. From your Go project, run the command below.

    Documented command
    go get github.com/cohesion-org/deepseek-go
  2. For usage prerequisites and examples, see the project README’s Getting Started section.

Expected outcome

The Deepseek-Go package is added to the project for use as a DeepSeek API client.

Guide limitations

  • Installation alone does not configure an API key or make an API request.
  • The README states that a valid DeepSeek API key is required before using the library.
Source-based practical guide

Prepare environment settings for Deepseek-Go tests

Set up the documented environment-file settings for running Deepseek-Go tests.

Before you start

  • A checkout of the repository containing .env.example.
  • A DeepSeek API key is needed only for live DeepSeek integration tests; an OpenRouter key is optional and used for integration image tests.

Steps

  1. Copy .env.example to .env with cp .env.example .env.

  2. For live DeepSeek integration tests, add TEST_DEEPSEEK_API_KEY=your_api_key_here to .env.

  3. Optionally, add OPENROUTER_API_KEY=your_openrouter_key_here for integration image tests.

  4. Optionally, set TEST_TIMEOUT=1m; the documented default is 30 seconds.

Expected outcome

The repository has an environment file with the selected test settings; live integration tests can be run separately using the documented test command and required keys.

Guide limitations

  • This recipe prepares settings only and does not run tests.
  • Offline tests use a built-in mock server and do not require a DeepSeek API key.
  • The live integration lane requires TEST_DEEPSEEK_API_KEY or DEEPSEEK_API_KEY; image/OpenRouter integration tests also require OPENROUTER_API_KEY.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
17 November 2026
Original website title
cohesion-org/deepseek-go · Official homepage title · retained in its source language