Getting started

Introduction

DigitStore gives you API keys for top AI models and a one-command installer for Codex and Claude Code. Buy a key, run one command, start coding.

How it works

  1. Buy a plan from the store and pay by bank transfer.
  2. Receive your sk-... key (or a CDK code) on WhatsApp.
  3. Run the one-line installer for your tool. It verifies the key, installs the CLI and writes the config for you.
  4. Open a new terminal and start working.
πŸ’‘ Have a CDK code instead of a key? Paste the CDK code where the installer asks for the key. It is redeemed automatically. You can also redeem manually on the Redeem CDK page.
Getting started

Getting started

Three steps from purchase to your first prompt.

Get a key

Pick a plan on the store. After payment is confirmed you receive an API key that starts with sk-, or a CDK code you can redeem.

Install Node.js 18 or newer

Both tools run on Node.js. Check with node --version. If it is missing:

PowerShell
winget install OpenJS.NodeJS.LTS
Terminal
brew install node
Terminal
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && sudo apt install -y nodejs
Run the installer for your tool

Pick Codex or Claude Code and paste the one-line command. Replace sk-your-key with your key.

Installer options

Set these environment variables before the command to skip prompts.

VariableWhat it does
DS_KEYYour sk- key or CDK code.
DS_MODELModel to use, e.g. gpt-astra or claude-opus-5. Skips the model menu.
DS_NO_PROMPTSet to 1 to never ask questions (uses the recommended model).
DS_SKIP_NPMSet to 1 to skip installing the CLI and only write the config.
Getting started

Models and plans

The models you can call depend on the plan you bought. The installer lists exactly what your key allows.

Model IDBest forWorks with
gpt-astraFast, high-throughput everyday codingCodex, API
gpt-5.6-solDeep reasoning and hard problemsCodex, API
claude-opus-5Long context and careful analysisClaude Code, API
claude-fable-5-1Fast, versatile coding and writingClaude Code, API
grok-4.7Reasoning with current knowledgeAPI

List the models on your key

cURL
curl https://digitstore.top/api/v1/models \
  -H "Authorization: Bearer sk-your-key"
ℹ️ A GPT/Astra plan has no Claude models, so the Claude Code installer will tell you and stop. Use Codex for those plans.
Setup

Codex

Install the Codex CLI and point it at DigitStore with one command.

One-command install

PowerShell
$env:DS_KEY="sk-your-key"; irm https://digitstore.top/install/codex.ps1 | iex
Terminal
DS_KEY="sk-your-key" bash -c "$(curl -fsSL https://digitstore.top/install/codex.sh)"

The installer:

  • Verifies your key and lists the models it can call
  • Installs @openai/codex globally with npm
  • Writes ~/.codex/config.toml (your old file is backed up)
  • Saves your key as DIGITSTORE_API_KEY

Choose a model

PowerShell
$env:DS_KEY="sk-your-key"; $env:DS_MODEL="gpt-astra"; irm https://digitstore.top/install/codex.ps1 | iex
Terminal
DS_KEY="sk-your-key" DS_MODEL="gpt-astra" bash -c "$(curl -fsSL https://digitstore.top/install/codex.sh)"

Start using it

Open a new terminal

The key is saved to your environment, so existing windows will not see it.

Run codex

Run it inside your project folder.

VS Code extension

Install the Codex extension, quit VS Code completely and reopen it. On Linux, launch it from a terminal with code ..

Manual config

Prefer to configure it yourself? Put this in ~/.codex/config.toml and set DIGITSTORE_API_KEY.

TOML
model = "gpt-astra"
model_provider = "digitstore"

[model_providers.digitstore]
name = "DigitStore"
base_url = "https://digitstore.top/api/v1"
env_key = "DIGITSTORE_API_KEY"
wire_api = "responses"
requires_openai_auth = false
⚠️ PowerShell blocks the script? Run this once, then try again:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Remove it

See Uninstall for the one-line removal command.

Setup

Claude Code

Install Claude Code and run it on your DigitStore key.

ℹ️ Claude Code needs a plan that includes Claude models. The installer checks this for you.

One-command install

PowerShell
$env:DS_KEY="sk-your-key"; irm https://digitstore.top/install/claude.ps1 | iex
Terminal
DS_KEY="sk-your-key" bash -c "$(curl -fsSL https://digitstore.top/install/claude.sh)"

The installer:

  • Verifies your key and lists the Claude models it can call
  • Installs @anthropic-ai/claude-code globally with npm
  • Merges the DigitStore settings into ~/.claude/settings.json (other settings are kept, a backup is made)

Choose a model

PowerShell
$env:DS_KEY="sk-your-key"; $env:DS_MODEL="claude-opus-5"; irm https://digitstore.top/install/claude.ps1 | iex
Terminal
DS_KEY="sk-your-key" DS_MODEL="claude-opus-5" bash -c "$(curl -fsSL https://digitstore.top/install/claude.sh)"

Start using it

Open a new terminal in your project
Run claude

If it asks how to sign in, choose the API key option. Do not sign in to Anthropic.

Switch models any time

Type /model inside a session.

Manual config

Merge this into ~/.claude/settings.json:

JSON
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://digitstore.top/api",
    "ANTHROPIC_AUTH_TOKEN": "sk-your-key",
    "ANTHROPIC_MODEL": "claude-opus-5"
  }
}
πŸ’‘ The base URL is https://digitstore.top/api (no /v1). Claude Code adds /v1/messages itself.
⚠️ PowerShell blocks the script? Run once: Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
Setup

Uninstall

Remove the tool, its config and your saved key with a single command.

πŸ—‘οΈ Heads up: the Codex commands delete the whole ~/.codex folder (config and history). Back it up first if you need it.

Codex

PowerShell
[Environment]::SetEnvironmentVariable('DIGITSTORE_API_KEY',$null,'User'); Remove-Item Env:DIGITSTORE_API_KEY -ErrorAction SilentlyContinue; Remove-Item "$env:USERPROFILE\.codex" -Recurse -Force -ErrorAction SilentlyContinue; npm uninstall -g @openai/codex
Terminal
perl -ni -e 'print unless /DIGITSTORE_API_KEY/' ~/.zshrc ~/.bashrc 2>/dev/null; launchctl unsetenv DIGITSTORE_API_KEY 2>/dev/null; rm -rf ~/.codex; npm uninstall -g @openai/codex

Claude Code

This removes only the DigitStore entries from ~/.claude/settings.json and keeps your other Claude settings.

PowerShell
$f="$env:USERPROFILE\.claude\settings.json"; if (Test-Path $f) { $j = Get-Content $f -Raw | ConvertFrom-Json; if ($j.env) { foreach ($n in @($j.env.PSObject.Properties.Name)) { if ($n -like 'ANTHROPIC_*' -or $n -eq 'CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC') { $j.env.PSObject.Properties.Remove($n) } } }; $j | ConvertTo-Json -Depth 20 | Set-Content $f -Encoding UTF8 }; npm uninstall -g @anthropic-ai/claude-code
Terminal
node -e 'const fs=require("fs"),f=require("os").homedir()+"/.claude/settings.json";try{const s=JSON.parse(fs.readFileSync(f,"utf8"));for(const k of Object.keys(s.env||{}))if(k.startsWith("ANTHROPIC_")||k==="CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC")delete s.env[k];fs.writeFileSync(f,JSON.stringify(s,null,2))}catch(e){}'; npm uninstall -g @anthropic-ai/claude-code
ℹ️ Installers keep timestamped backups next to your config (for example config.toml.bak.20260101120000). Delete them if you no longer need them.
API

API reference

One OpenAI-compatible endpoint for any client, library or app.

Base URL

URL
https://digitstore.top/api/v1

For Anthropic-style clients such as Claude Code, use https://digitstore.top/api as the base URL.

Authentication

HTTP header
Authorization: Bearer sk-your-key
πŸ”’ Keep your key private. If it leaks, contact support straight away.

Endpoints

MethodPathUsed by
GET/api/v1/modelsModel list
POST/api/v1/responsesCodex
POST/api/v1/chat/completionsOpenAI SDKs, most apps
POST/api/v1/messagesClaude Code, Anthropic SDKs

Chat completions

cURL
curl https://digitstore.top/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-your-key" \
  -d '{
    "model": "gpt-astra",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'
API

Python and Node.js

Use the official OpenAI SDKs. Only the base URL and key change.

Python

Terminal
pip install openai
Python
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-key",
    base_url="https://digitstore.top/api/v1",
)

response = client.chat.completions.create(
    model="gpt-astra",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Node.js

Terminal
npm install openai
JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "sk-your-key",
  baseURL: "https://digitstore.top/api/v1",
});

const response = await client.chat.completions.create({
  model: "gpt-astra",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);
Help

FAQ

Quick answers to the most common problems.

Common questions

The installer says "Key rejected"

The key was typed wrong or is expired. Check it on the Check key page, or message us on WhatsApp.

"Node.js is not installed"

Install Node.js 18 or newer from nodejs.org, then run the command again in a new terminal.

codex or claude is "not recognized"

Open a new terminal window so the PATH refreshes. If it still fails, run npm config get prefix and make sure that folder is on your PATH.

PowerShell says running scripts is disabled

Run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once, then try again.

npm gives EACCES or EBUSY

EBUSY: close every window running codex or claude and re-run. EACCES on macOS/Linux: install Node with nvm, or set an npm prefix in your home folder.

Claude Code asks me to sign in

Choose the API key option. Do not sign in to an Anthropic account.

Which models can my key use?

Run the installer (it lists them), open Check key, or call GET /api/v1/models.

How do I change my model later?

Run the installer again with DS_MODEL set, or edit the model line in your config. In Claude Code you can type /model.

πŸ’¬ Still stuck? Contact support on WhatsApp and we will help you.