How to set up and launch an AgenticOS X (Twitter) agent
Updated May 31, 2026, 02:21 PM
Before you begin
Make sure you have the prerequisites in place:
- Bun Runtime (v1.0 or newer)
- Twitter API credentials (OAuth 2.0)
- A ChainGPT API key
- ChainGPT credits
- A Twitter developer account (used to obtain the Twitter API credentials)
Quick setup
- Clone the repository from GitHub:
ChainGPT-org/AgenticOS. - Install dependencies by running
bun install. - Configure your environment. Copy the example environment file (
cp .env.example .env), then set the required variables in your.envfile:CHAINGPT_API_KEY(your ChainGPT API key)TWITTER_API_KEYTWITTER_API_SECRETTWITTER_ACCESS_TOKENTWITTER_ACCESS_SECRET
- Launch the agent with
bun start.
Once configured, the agent runs on your own infrastructure (any cloud server or serverless platform) and autonomously generates and posts content on a schedule using cron scheduling and real-time webhook triggers.
Next step
See the full setup documentation at https://docs.chaingpt.org/dev-docs-b2b-saas-api-and-sdk/chaingpt-claude-skill-and-plugin/products/agenticos