How to get and configure your ChainGPT API key and credits for AgenticOS
Updated May 31, 2026, 02:21 PM
Why you need an API key
AgenticOS generates tweets using ChainGPT AI, so a ChainGPT API key is required. Credits are consumed only when the agent generates content.
(Source: docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/products/agenticos)
Get your API key
- Visit https://app.chaingpt.org and create an account.
- Go to API Keys and click Create New Secret Key.
- Copy the key immediately. It is only displayed once.
(Source: docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/getting-started/api-key-setup)
Buy credits
Buy credits at https://app.chaingpt.org/addcredits
(Source: docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/getting-started/api-key-setup)
Add your key and credits to AgenticOS
Copy the example environment file and fill in your credentials:
cp .env.example .env
In your AgenticOS .env file, set your ChainGPT API key as the CHAINGPT_API_KEY variable. This is configured alongside your X/Twitter credentials: TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, and TWITTER_ACCESS_SECRET.
Generation costs 1 credit per generated tweet, so keep a sufficient credit balance for your posting volume. High-frequency posting adds up.
(Source: docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/products/agenticos)
Next step
Create your API key at https://app.chaingpt.org under API Keys, then add it to your .env file.