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
Buy a plan from the store and pay by bank transfer.
Receive your sk-... key (or a CDK code) on WhatsApp.
Run the one-line installer for your tool. It verifies the key, installs the CLI and writes the config for you.
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:
Windows macOS Linux
PowerShell Copy
winget install OpenJS.NodeJS.LTS
Terminal Copy
brew install node
Terminal Copy
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.
Variable What it does
DS_KEY Your sk- key or CDK code.
DS_MODEL Model to use, e.g. gpt-astra or claude-opus-5 . Skips the model menu.
DS_NO_PROMPT Set to 1 to never ask questions (uses the recommended model).
DS_SKIP_NPM Set 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 ID Best for Works with
gpt-astra Fast, high-throughput everyday coding Codex, API
gpt-5.6-sol Deep reasoning and hard problems Codex, API
claude-opus-5 Long context and careful analysis Claude Code, API
claude-fable-5-1 Fast, versatile coding and writing Claude Code, API
grok-4.7 Reasoning with current knowledge API
List the models on your key
cURL Copy
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
Windows macOS / Linux
PowerShell Copy
$env:DS_KEY="sk-your-key"; irm https://digitstore.top/install/codex.ps1 | iex
Terminal Copy
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
Windows macOS / Linux
PowerShell Copy
$env:DS_KEY="sk-your-key"; $env:DS_MODEL="gpt-astra"; irm https://digitstore.top/install/codex.ps1 | iex
Terminal Copy
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 Copy
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
Windows macOS / Linux
PowerShell Copy
$env:DS_KEY="sk-your-key"; irm https://digitstore.top/install/claude.ps1 | iex
Terminal Copy
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
Windows macOS / Linux
PowerShell Copy
$env:DS_KEY="sk-your-key"; $env:DS_MODEL="claude-opus-5"; irm https://digitstore.top/install/claude.ps1 | iex
Terminal Copy
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 Copy
{
"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
Windows macOS / Linux
PowerShell Copy
[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 Copy
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.
Windows macOS / Linux
PowerShell Copy
$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 Copy
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 Copy
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 Copy
Authorization: Bearer sk-your-key
Endpoints
Method Path Used by
GET /api/v1/models Model list
POST /api/v1/responses Codex
POST /api/v1/chat/completions OpenAI SDKs, most apps
POST /api/v1/messages Claude Code, Anthropic SDKs
Chat completions
cURL Copy
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 Copy
pip install openai
Python Copy
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 Copy
npm install openai
JavaScript Copy
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 .