Set Up GigaChat API Access
Configures GigaChat API access - registration, authorization key, OAuth scope, TLS certificates, and env vars for SDK, LangChain, or gpt2giga.
Why it matters
Integrate with GigaChat by handling the complete API access setup, including registration, authorization, and OAuth.
Outcomes
What it gets done
Register for GigaChat API access
Configure OAuth for authorization
Verify the connection to the GigaChat API
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/gigachat-setup | bash Overview
GigaChat Setup
Configures access to the GigaChat API end to end - project registration, building the authorization key, choosing the OAuth scope, TLS certificates for the Russian Trusted Root CA, and shared environment variables for the gigachat SDK, LangChain, or gpt2giga. Use it whenever setup is the blocker - registering a GigaChat project, generating credentials, fixing TLS/SSL errors, or diagnosing auth, scope, or rate-limit failures. Hand off to the chat, function-calling, LangChain, or proxy skill once connectivity is confirmed working.
What it does
GigaChat Setup handles everything needed before any GigaChat application code should be written: creating a project on developers.sber.ru, turning a client_id/client_secret pair into the base64 authorization key GigaChat expects, choosing the correct scope for the account type, and configuring TLS certificates for the Russian Trusted Root CA that GigaChat's endpoints require. It also documents the base environment variables shared across the gigachat SDK, langchain-gigachat, and gpt2giga, so credentials are set once and reused consistently.
When to use - and when NOT to
Use it whenever a task starts with something like "how do I connect to GigaChat?" - registration, first-time credential setup, or fixing auth, TLS, or scope errors on an existing setup. It explicitly stays out of implementation-level concerns: it will not explain chat payload design (that's gigachat-sdk-chat), function calling (gigachat-sdk-functions), LangChain wrappers (langchain-gigachat), or proxy routing (gpt2giga) - each of those has its own skill, and this one only hands off to them once connectivity is confirmed working.
Inputs and outputs
The workflow is sequential: guide registration if credentials don't exist yet; generate the base64 authorization key from client_id:client_secret if they do; confirm the account type to pick between GIGACHAT_API_PERS, GIGACHAT_API_B2B, or GIGACHAT_API_CORP scopes; get TLS verification working correctly before ever suggesting the escape hatch of verify_ssl_certs=False; and verify the whole chain with a minimal call like get_models() before touching application code. Failures are triaged in a fixed order: TLS, then auth, then scope, then rate limit, then content policy. Two reference files carry the deeper detail: references/auth-and-certs.md for setup, environment variables, token flow, and certificates, and references/troubleshooting.md for diagnosing common failures.
Integrations
The skill's environment-variable and certificate guidance is written to be shared across every GigaChat access path in the ecosystem - the official gigachat Python SDK, the langchain-gigachat integration, and the gpt2giga OpenAI-compatible proxy - so credentials configured once via this skill work the same way regardless of which of those a project later uses. Its default posture prefers fixing the CA bundle over disabling TLS verification, and prefers environment variables over hardcoded secrets for SDK or proxy usage.
Who it's for
Developers setting up GigaChat access for the first time, or debugging an existing integration that's failing with auth, TLS/SSL, or scope errors, before moving on to the chat, function-calling, LangChain, or proxy skill that actually implements their use case.
Source README
GigaChat Setup
Use this skill whenever the task starts with "how do I connect to GigaChat?".
What this skill covers
- Project setup on
developers.sber.ru - Building the authorization key from
client_id:client_secret - Choosing the right
scope - TLS certificates for the Russian Trusted Root CA
- Base environment variables shared by
gigachat,langchain-gigachat, andgpt2giga - First-pass troubleshooting for auth, SSL, and rate-limit failures
Workflow
- If the user does not yet have credentials, guide them through registration and project creation.
- If the user has
client_idandclient_secret, generate the base64 authorization key. - Confirm the account type and pick
GIGACHAT_API_PERS,GIGACHAT_API_B2B, orGIGACHAT_API_CORP. - Configure TLS verification correctly before suggesting
verify_ssl_certs=False. - Verify connectivity with
get_models()or a minimal chat call before debugging application code. - For SDK or proxy usage, prefer environment variables over hardcoded secrets.
- If a request fails, classify it in this order: TLS, auth, scope, rate limit, then content policy.
Read these references as needed
- For setup, env vars, token flow, and certificates:
references/auth-and-certs.md - For common failures and diagnosis:
references/troubleshooting.md
Default output
- prefer CA bundle setup over disabling TLS verification
- treat connectivity as solved only after a minimal code-level check succeeds
- send the user to the implementation skill only after setup is known-good
Boundaries
- Do not explain chat payload design here; use
gigachat-sdk-chat. - Do not explain function calling here; use
gigachat-sdk-functions. - Do not explain LangChain wrappers here; use
langchain-gigachat. - Do not explain proxy routing here; use
gpt2giga.
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.