Skip to content
Open

Dev #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
995d924
added cron job and webhook functionality
Feb 24, 2025
f265974
updated read me
Feb 24, 2025
0ce35ab
Merge pull request #1 from ChainGPT-org/development
Feb 24, 2025
f2bd9ee
updated read me
Feb 24, 2025
5ca2109
Merge pull request #2 from ChainGPT-org/development
Feb 24, 2025
5cf302f
added api key to env
Feb 25, 2025
a7161fa
Merge pull request #3 from ChainGPT-org/development
Feb 25, 2025
9fcc9f4
added descriptions
Feb 25, 2025
a37d444
Merge pull request #4 from ChainGPT-org/development
Feb 25, 2025
3c8c3cf
updated schedule.json with default prompts
Feb 26, 2025
b199b50
Merge pull request #5 from ChainGPT-org/development
Feb 26, 2025
1078865
Update README.md
maryamns Mar 4, 2025
c96fe55
Update README.md
maryamns Mar 4, 2025
de71017
first refactor
mmartinez Mar 4, 2025
97e7dc0
updating author
mmartinez Mar 4, 2025
56b77c8
updating readme
mmartinez Mar 4, 2025
e3bf121
Fixing urls
mmartinez Mar 4, 2025
9d63f6a
removing comment
mmartinez Mar 4, 2025
9829bb6
changes made for consistency with chaingpt
Mar 7, 2025
a4274b9
removing lock
Mar 7, 2025
386bdc8
Merge pull request #7 from ChainGPT-org/refactor-changes
maryamns Mar 7, 2025
c7b97a8
Merge pull request #6 from ChainGPT-org/feat/refactor-max
maryamns Mar 7, 2025
cf58e4c
Update README.md
ceoguy Apr 10, 2025
061529c
Update README.md
ceoguy Apr 10, 2025
555c8f9
Update README.md
ceoguy Apr 13, 2025
3f4569b
Update README.md
ceoguy Apr 13, 2025
cbf3f73
Update .env.example
ceoguy Apr 13, 2025
1b5ef00
readme update
Apr 15, 2025
644fe39
Merge pull request #8 from ChainGPT-org/fixes
maryamns Apr 15, 2025
0700bd5
updated twitter token generation
Apr 15, 2025
5ef5c8d
Merge pull request #9 from ChainGPT-org/fixes
maryamns Apr 15, 2025
8831c8f
updated docs
Apr 16, 2025
03393c7
readme update
Apr 16, 2025
79c89c6
AgenticOS for AI-driven Web3 insights and automation on X
MaryamNaveedFunavry Apr 16, 2025
1104137
gerge branch 'main' of https://github.com/ChainGPT-org/Twitter_AI_Agent
Apr 18, 2025
f32cdd6
fixes
Apr 18, 2025
a528b99
Merge pull request #12 from ChainGPT-org/fixes
maryamns Apr 18, 2025
122e84c
Refresh and access token is created in one api code
nasirfunavry Apr 25, 2025
1cc960f
One Click deployment on Render is implemented
nasirfunavry Apr 25, 2025
4ad501c
Added to vercel for one click deployment
nasirfunavry Apr 25, 2025
735a81f
Readme and vercel json added
nasirfunavry Apr 25, 2025
e561b4a
add forked ref to detect proper branch
nasirfunavry Apr 25, 2025
4fc9cf5
Add branch to main
nasirfunavry Apr 25, 2025
056ebe2
Merge pull request #1 from nasirfunavry/dev
nasirfunavry Apr 25, 2025
275923b
update link to deployment
nasirfunavry Apr 25, 2025
a96f28b
update link
nasirfunavry Apr 25, 2025
120d9dd
Configuration json for vercel
nasirfunavry Apr 25, 2025
2c0393c
return back
nasirfunavry Apr 25, 2025
7207678
remove vercel josn file
nasirfunavry Apr 25, 2025
069cadd
vercel json with fields back
nasirfunavry Apr 25, 2025
e97f138
change framework from node to vite
nasirfunavry Apr 25, 2025
495e228
bun update with commands
nasirfunavry Apr 25, 2025
862829e
vercel package updated
nasirfunavry Apr 25, 2025
6d27ddb
remove framework
nasirfunavry Apr 25, 2025
a3aecc2
add builds and routes
nasirfunavry Apr 25, 2025
b22e1bc
one click deployment on railway
nasirfunavry Apr 25, 2025
0617f4b
sugesting added
nasirfunavry Apr 25, 2025
c59e0e7
rawily setup added
nasirfunavry Apr 25, 2025
f3f4706
Update README.md
nasirfunavry Apr 25, 2025
5872514
Update README.md
nasirfunavry Apr 25, 2025
ba58d65
Update Callback Url
nasirfunavry Apr 28, 2025
a0fe828
update twitter sheduler
nasirfunavry Apr 28, 2025
2e195ac
Update custome tweet sheduler
nasirfunavry Apr 29, 2025
2e94fd0
Update set token with password only
nasirfunavry Apr 29, 2025
d0d7b61
ignore others to show on readme
nasirfunavry Apr 29, 2025
d2c1c23
On Login Auth it directly Set access and Refresh Token
nasirfunavry Apr 29, 2025
c385dbb
in login control instead of updating url dynamically updated by getti…
nasirfunavry Apr 29, 2025
d96d29d
One Clicl Deployment is added on readme
nasirfunavry Apr 29, 2025
d627176
add Twitter api key secret and callback url setting in twitter_readme.md
nasirfunavry Apr 29, 2025
dd5aba2
Remove access and refresh token part and add help to twitter guide
nasirfunavry Apr 29, 2025
cb36c96
updated readme with add token precautions
nasirfunavry Apr 29, 2025
ab306a7
.env example is updated
nasirfunavry Apr 29, 2025
31d03f8
password auth is added in render file setup
nasirfunavry Apr 29, 2025
c333502
remove duplicating data
nasirfunavry Apr 29, 2025
d7845da
Add token readme update
nasirfunavry Apr 29, 2025
e260343
update dynamic url for callback
nasirfunavry Apr 29, 2025
940d941
sheduler chage
nasirfunavry Apr 29, 2025
c7b00fc
upadate readme with better docs
nasirfunavry Apr 29, 2025
4d21cf4
re ordering of readme
nasirfunavry Apr 29, 2025
57ac9b1
Password is added
nasirfunavry Apr 29, 2025
6b686a3
Update improvement in form of password
nasirfunavry Apr 30, 2025
86a80ef
update some proper message
nasirfunavry Apr 30, 2025
b9cd247
Give proper guide how to upgrade twitter and free limit info
nasirfunavry Apr 30, 2025
2025a84
ejs setup
ihtisham00 Apr 30, 2025
25a0d14
Scheduler page
ihtisham00 Apr 30, 2025
b3f0405
added apis to edit scheduler
Apr 30, 2025
96cd771
Merge pull request #2 from nasirfunavry/s/dev
Apr 30, 2025
63772c3
Merge remote-tracking branch 'origin/dev' into ejs-setup
ihtisham00 Apr 30, 2025
b1981a1
Get, delete & update config api
ihtisham00 Apr 30, 2025
1f55508
Schedule Update Api integrated
ihtisham00 Apr 30, 2025
01120a1
css build
ihtisham00 Apr 30, 2025
7000caf
removed .env
ihtisham00 May 1, 2025
d8e8e3b
removed special characters from schedular text
ihtisham00 May 1, 2025
8367405
Merge pull request #3 from nasirfunavry/ejs-setup
ihtisham00 May 1, 2025
17817c0
password auth
ihtisham00 May 2, 2025
4097443
css build
ihtisham00 May 2, 2025
a6d7255
Merge pull request #4 from nasirfunavry/ejs-setup
ihtisham00 May 2, 2025
5e702a3
added auth
May 2, 2025
23b2f4d
Merge pull request #5 from nasirfunavry/s/dev
May 2, 2025
3178c9d
test link
May 2, 2025
e3fa7be
Merge pull request #6 from nasirfunavry/s/dev
May 2, 2025
3774339
test link 2
May 2, 2025
cd9f254
Reschedule tweets after file updation
ihtisham00 May 2, 2025
05f78ef
Merge pull request #7 from nasirfunavry/ejs-setup
ihtisham00 May 2, 2025
4033d46
Merge branch 'dev' of https://github.com/nasirfunavry/AgenticOS into …
May 2, 2025
603e162
updated readme
May 2, 2025
9cef517
Merge pull request #8 from nasirfunavry/s/dev
May 2, 2025
966743c
added image
May 2, 2025
824a573
Merge pull request #9 from nasirfunavry/s/dev
May 2, 2025
53c80ec
added chain gpt logo
ihtisham00 May 2, 2025
f2846ed
Merge branch 'dev' into ejs-setup
ihtisham00 May 2, 2025
fa13764
Merge pull request #10 from nasirfunavry/ejs-setup
ihtisham00 May 2, 2025
6fcf4c4
Added refresh token button
ihtisham00 May 5, 2025
51ab3e3
Webhook page
ihtisham00 May 5, 2025
e862e7b
Merge branch 'dev' into ejs-setup
ihtisham00 May 5, 2025
16ca275
Merge pull request #11 from nasirfunavry/ejs-setup
ihtisham00 May 5, 2025
6297158
get webhook status api
ihtisham00 May 5, 2025
ba6af99
Merge branch 'dev' into ejs-setup
ihtisham00 May 5, 2025
045e47f
Merge pull request #12 from nasirfunavry/ejs-setup
ihtisham00 May 5, 2025
f040bf5
Authentication in webhook registration
ihtisham00 May 6, 2025
e24d188
Merge branch 'dev' into ejs-setup
ihtisham00 May 6, 2025
c083296
Merge pull request #13 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
7fbd9fd
added origin
ihtisham00 May 6, 2025
2e99296
Merge branch 'dev' into ejs-setup
ihtisham00 May 6, 2025
371ba36
Merge pull request #14 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
dc4681c
added logs
ihtisham00 May 6, 2025
ecbfec7
Merge branch 'dev' into ejs-setup
ihtisham00 May 6, 2025
552c2d3
update logs
ihtisham00 May 6, 2025
575bde9
Merge pull request #15 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
c75555d
added encoding header
ihtisham00 May 6, 2025
b44783f
Merge branch 'dev' into ejs-setup
ihtisham00 May 6, 2025
9f252ed
Merge pull request #16 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
9be9e44
updated twitter callback url
ihtisham00 May 6, 2025
42cb15c
removed build command
ihtisham00 May 6, 2025
e1c38cd
Merge pull request #17 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
92595e0
temp changes for demo video
ihtisham00 May 6, 2025
ed7c322
Merge branch 'dev' into ejs-setup
ihtisham00 May 6, 2025
1820624
Merge pull request #18 from nasirfunavry/ejs-setup
ihtisham00 May 6, 2025
0222009
Generate Keys added in readme
ihtisham00 May 6, 2025
b2bad1b
Merge branch 'dev' of https://github.com/nasirfunavry/AgenticOS into dev
ihtisham00 May 6, 2025
bd2e24f
Merge branch 'main' into dev
nasirchaingpt Nov 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 53 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ Each generated tweet consumes 1 ChainGPT credit.
### Step 1: Clone and Set Up

```bash

git clone https://github.com/ChainGPT-org/AgenticOS.git

cd AgenticOS

# Install Bun runtime
Expand Down Expand Up @@ -76,8 +78,10 @@ PASSWORD_AUTH=your_secure_password # API Authentication Password - Required for

## 🔐 Generate Encryption Keys


[![🔐 Generate New Keys](https://img.shields.io/badge/🔐_Generate_New_Keys-Click_Here-blue?style=for-the-badge)](https://ChainGPT-org.github.io/AgenticOS) ↗️


> Click the button above to generate secure encryption keys for your .env file

---
Expand Down Expand Up @@ -117,6 +121,8 @@ To generate your Access Token and Refresh Token, open the following URL in your
```bash
# Access token Refresh Token Generator
https://your-domain.com/api/login

main
```
Comment on lines +125 to 126
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove stray "main" marker from code block.

There's a standalone "main" text on line 125 that appears to be a branch/merge marker and breaks the code block formatting.

Apply this diff:

 ```bash
 # Access token Refresh Token Generator
    https://your-domain.com/api/login
-
- main

<details>
<summary>🤖 Prompt for AI Agents</summary>

In README.md around lines 125-126, remove the stray "main" marker that
interrupts the fenced code block; delete the standalone line containing "main"
so the code block closes correctly and the snippet becomes: the URL line
followed directly by the closing triple backticks.


</details>

<!-- This is an auto-generated comment by CodeRabbit -->


⚠️ Make sure to replace your-domain.com with your actual deployed domain (to deploy you can refer to "Deployment on Render" section).
Expand All @@ -125,7 +131,9 @@ To generate your Access Token and Refresh Token, open the following URL in your

### Workflow 1: Scheduled Tweeting (Cron)

There are two methods to schedule tweets.
dev
there are two methods to schedule tweets


1. Define your schedule in `data/schedule.json`:

Expand All @@ -142,16 +150,19 @@ There are two methods to schedule tweets.
}
```


2. Edit schedular in dashboard. You can find dashboard at https://<your_domain>/

![Schedule Interface](public/images/image.png)
main

Tweets are auto-generated and posted according to this schedule (UTC).

### Workflow 2: ChainGPT Webhook for Live News

**Subscribe to Categories:**


There are two methods to subscribe to categories and register Webhook.

1. Using following APIs:
Expand All @@ -172,6 +183,7 @@ Body: { "url": "https://{your-domain.com}/api/webhook/" }
AgenticOS will automatically post tweets from ChainGPT news updates.

**Get available categories:**
main

```bash
GET https://webapi.chaingpt.org/category-subscription/
Expand All @@ -181,8 +193,10 @@ Headers:
}
```


**Subscribe to categories:**
You can subscribe to desired categories using their ids
main

```bash
POST https://webapi.chaingpt.org/category-subscription/subscribe
Expand All @@ -193,6 +207,7 @@ Headers:
Body: { "categoryIds": [2, 3] }
```


2. Using Dashboard:
Goto following page: https://<your_domain>/live-news

Expand All @@ -209,6 +224,7 @@ Body: { "categoryIds": [2, 3] }
## 🚀 Deployment on Render

[![Fork on GitHub](https://img.shields.io/github/forks/ChainGPT-org/AgenticOS?style=social)](https://github.com/ChainGPT-org/AgenticOS/fork)
main

To deploy this application:

Expand All @@ -226,38 +242,56 @@ For example, if your repository URL is `https://github.com/john-doe/AgenticOS`,
https://render.com/deploy?repo=https://github.com/john-doe/AgenticOS
```

4. Configure environment variables as described in the [Configure env section](#step-2-configure-env) above
5. Wait for the deployment to complete. This may take a few minutes.
6. Once deployed, visit your domain and click on the "Refresh Token" tab in the sidebar to get twitter access and refresh token.
7. You can schedule tweets in the "Scheduler" tab and add webhooks in the "Live News" page.
dev
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=YOUR_REPO_URL)

Deploy your Twitter automation app instantly on Render without needing to clone the code manually. Here's how it works:

- **Simple Setup**: Fork the repository and use the Render deployment URL — no need to clone the code locally.
- **Schedule Starts Automatically**: Once deployed, the app will begin executing the default `schedule.json` for posting tweets based on preset events.
- **Environment Variables Required**:
- Set the required `.env` variables (see `.env.example`).
- These will be prompted during deployment.
- **API Ready**: The app exposes APIs for:
- Twitter OAuth login ({your_domain/api/login})
- Access & refresh token management (after login you can save token after verifying password entered during setting env)
- Webhook registration ({your_domain/api/webhook/})
- Category subscription (ChainGPT)

## 🔧 Customizing Scheduled Tweets (Optional)

Want to change the timing or tweet content?

1. **Clone the Auto-Created Repo**: After deployment, Render creates a linked GitHub repo under your account.
2. **Update `schedule.json`**:
- Use UTC time.
- Provide your desired prompt and timing.
3. **Push Changes**: Commit and push updates to the repo.
4. **Auto-Redeploy**: Wait 1–2 minutes — Render will redeploy automatically.
5. **Reset Access Token**: Call the token API again to reapply your OAuth tokens.

Comment on lines +245 to +272
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove "dev" marker from deployment section.

The deployment section starts with a " dev" marker on line 245 that should be removed.

Apply this diff:

 https://render.com/deploy?repo=https://github.com/john-doe/AgenticOS
  • dev
    Deploy to Render


> Committable suggestion skipped: line range outside the PR's diff.

<details>
<summary>🤖 Prompt for AI Agents</summary>

In README.md around lines 245 to 272 there is an extraneous "dev" marker at the
start of the Render deployment section; remove that lone "dev" token so the
section begins directly with the Deploy to Render badge and ensure surrounding
spacing/newlines remain consistent after removal.


</details>

<!-- This is an auto-generated comment by CodeRabbit -->


---

## 📚 Project Structure

```
AgenticOS/
\dev
twitter-ai-agent/
├── data/
── public/
│ └── images/
│ └── schedule.json
\
├── src/
│ ├── config/
│ ├── controllers/
│ ├── jobs/
│ ├── middleware/
\
│ ├── routes/
│ ├── services/
│ ├── types/
│ ├── utils/
│ └── index.ts
├── views/
├── .env.example
├── .npmrc
├── bun.lock
├── package.json
├── postcss.config.js
├── render.yaml
├── tailwind.config.js
\
└── tsconfig.json
```
Comment on lines +279 to 296
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix project structure formatting with stray markers.

The project structure section contains multiple formatting markers ("\dev", "", etc.) on lines 279, 283, 288, and 294 that disrupt the directory tree display.

Apply this diff:

 ## 📚 Project Structure
 

-\dev
twitter-ai-agent/
├── data/
-│ └── schedule.json
-
+│ └── schedule.json
├── src/
│ ├── config/
│ ├── controllers/
│ ├── jobs/
-
│ ├── routes/
│ ├── services/
│ ├── types/
│ ├── utils/
│ └── index.ts
-
└── tsconfig.json

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
\dev
twitter-ai-agent/
├── data/
├── public/
│ └── images/
│ └── schedule.json
\
├── src/
│ ├── config/
│ ├── controllers/
│ ├── jobs/
│ ├── middleware/
\
│ ├── routes/
│ ├── services/
│ ├── types/
│ ├── utils/
│ └── index.ts
├── views/
├── .env.example
├── .npmrc
├── bun.lock
├── package.json
├── postcss.config.js
├── render.yaml
├── tailwind.config.js
\
└── tsconfig.json
```
twitter-ai-agent/
├── data/
│ └── schedule.json
├── src/
│ ├── config/
│ ├── controllers/
│ ├── jobs/
│ ├── routes/
│ ├── services/
│ ├── types/
│ ├── utils/
│ └── index.ts
└── tsconfig.json
🤖 Prompt for AI Agents
In README.md around lines 279 to 296, remove the stray formatting markers that
break the ASCII tree (the leading "\dev" line and the standalone "\" lines) and
adjust indentation so the directory tree displays cleanly; specifically delete
the "\dev" line, remove the isolated backslashes on the listed lines, and ensure
the schedule.json and subsequent lines retain their existing indentation so the
tree renders as a proper code block.


Expand Down Expand Up @@ -302,6 +336,8 @@ Contributions are welcome! Follow these steps:

## 📧 Support


Report issues via [GitHub Issues](https://github.com/ChainGPT-org/AgenticOS/issues).
main
Comment on lines +339 to +341
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove final "main" marker.

Remove the " main" marker on line 340.

Apply this diff:

 ## 📧 Support
 
-
 Report issues via [GitHub Issues](https://github.com/ChainGPT-org/AgenticOS/issues).
- main
 
 🚀 **Happy Coding!**
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Report issues via [GitHub Issues](https://github.com/ChainGPT-org/AgenticOS/issues).
main
## 📧 Support
Report issues via [GitHub Issues](https://github.com/ChainGPT-org/AgenticOS/issues).
🚀 **Happy Coding!**
🤖 Prompt for AI Agents
In README.md around lines 339 to 341, the trailing " main" marker after the
GitHub Issues link should be removed; edit line 340 to delete the extraneous "
main" token so the line reads only the Report issues via [GitHub
Issues](https://github.com/ChainGPT-org/AgenticOS/issues).


🚀 **Happy Coding!**
Loading