# Where are the global rules saved in my filesystem?

**URL:** <https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645>\
**Category:** Help\
**Created:** [April 8, 2025, 1:53pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645 "2025-04-08T13:53:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![qu8n](https://avatars.discourse-cdn.com/v4/letter/q/57b2e6/32.png) [@qu8n](https://forum.cursor.com/u/qu8n)\
**Post date:** [April 8, 2025, 1:53pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/1 "2025-04-08T13:53:01Z")

</div>

I want to track the Cursor global user rules in my git dotfiles tracker, but right now it’s saved inside the Cursor application itself at Settings \> Rules \> User Rules. Where can I find the text file that Cursor is saving this to in my filesystem?

---

<div class="post-metadata">

**Author:** ![Manikandan\_Rajappan](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@Manikandan\_Rajappan](https://forum.cursor.com/u/Manikandan_Rajappan)\
**Post date:** [July 16, 2025, 5:32pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/2 "2025-07-16T17:32:07Z")

</div>

Its stored in DB format, checkout this  
sqlite3 “/Users/$(whoami)/Library/Application Support/Cursor/User/globalStorage/state.vscdb”   
“SELECT value FROM ItemTable WHERE key = ‘aicontext.personalContext’;”

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [July 16, 2025, 5:39pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/3 "2025-07-16T17:39:46Z")

</div>

Hey, thanks a lot for the tip and the command to retrieve the rules — really helpful! Just wanted to mention that in the latest versions of Cursor, the rules are now stored in the cloud, so the local DB might not reflect recent changes.

---

<div class="post-metadata">

**Author:** ![Manikandan\_Rajappan](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@Manikandan\_Rajappan](https://forum.cursor.com/u/Manikandan_Rajappan)\
**Post date:** [July 16, 2025, 5:47pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/4 "2025-07-16T17:47:29Z")

</div>

Yes, I am debugging the same, some old rules are storing in this DB, but latest rules in dashboard on UI not listed.

I have a usecase to add one rule globally across my org, how can I achieve this, We are using Enterprise account. If this is in local DB, I can write a script and push it via JamF, but seems now it’s not possible. Any idea how i can move further

---

<div class="post-metadata">

**Author:** ![dev\_the\_dev](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@dev\_the\_dev](https://forum.cursor.com/u/dev_the_dev)\
**Post date:** [December 3, 2025, 8:48pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/5 "2025-12-03T20:48:56Z")

</div>

You can’t save global rules but can save global commands.

Global commands are saved in `~/.cursor/commands/`

Commands are saved as .md files the name of the file, becomes the name of the command.

It can be found in the cursor (⌘ ⇧ J) menu

---

<div class="post-metadata">

**Author:** ![Shaun\_Smith](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Shaun\_Smith](https://forum.cursor.com/u/Shaun_Smith)\
**Post date:** [March 5, 2026, 4:10pm UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/6 "2026-03-05T16:10:10Z")

</div>

do you always have to init the command though?

If there are global always applied rules, it would be nice to maintain those outside of cursor and push to an area where cursor will pick them up. Thought maybe a rule file for ~/.cursor/rules would be equivalent but doesn’t seem to be.

Am I missing anything?

---

<div class="post-metadata">

**Author:** ![wjia](https://avatars.discourse-cdn.com/v4/letter/w/f19dbf/32.png) [@wjia](https://forum.cursor.com/u/wjia)\
**Post date:** [March 17, 2026, 12:38am UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/7 "2026-03-17T00:38:44Z")

</div>

I found my custom written rules in the Cursor plugins cache - _.cursor/plugins/cache/\*\*/rules/\*.mdc -_ you’ll just need to identify your rules from the ones Cursor already has.

---

<div class="post-metadata">

**Author:** ![jcrben](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jcrben](https://forum.cursor.com/u/jcrben)\
**Post date:** [April 2, 2026, 4:16am UTC](https://forum.cursor.com/t/where-are-the-global-rules-saved-in-my-filesystem/76645/9 "2026-04-02T04:16:01Z")

</div>

As I mentioned at [Share your experience with Composer 2! - #101 by jcrben](https://forum.cursor.com/t/share-your-experience-with-composer-2/155289/101) this is sadly a dealbreaker for me and I’ll have ti churn after a month of pro.
