Skip to main content

Cyberstrike is now open source! AI-powered penetration testing for security professionals. Star on GitHub

वैश्विक कॉन्फ़िगरेशन

वैश्विक कॉन्फ़िगरेशन सभी प्रोजेक्ट में सभी Cyberstrike सत्रों के लिए डिफ़ॉल्ट व्यवहार सेट करता है।

📸 SCREENSHOT: global-config.png

वैश्विक कॉन्फ़िगरेशन फ़ाइल स्थान

फ़ाइल स्थान

वैश्विक कॉन्फ़िगरेशन वैश्विक कॉन्फ़िग डायरेक्टरी में रहता है:

~/.config/cyberstrike/

जब XDG_CONFIG_HOME सेट होता है तो यह $XDG_CONFIG_HOME/cyberstrike में हल होता है।

समर्थित फ़ाइल नाम

निम्नलिखित फ़ाइलें वैश्विक कॉन्फ़िग डायरेक्टरी से पढ़ी जाती हैं और क्रम में मर्ज की जाती हैं:

फ़ाइलप्रारूपप्राथमिकता
config.jsonJSONनिम्न (आधार, स्वचालित रूप से जनरेटेड)
cyberstrike.jsonJSONमध्यम
cyberstrike.jsoncटिप्पणियों के साथ JSONउच्च (पसंदीदा)

यदि एकाधिक फ़ाइलें मौजूद हैं, तो सभी पढ़ी जाती हैं और प्रत्येक बाद की फ़ाइल पिछली पर मर्ज होती है।

डायरेक्टरी संरचना

~/.config/cyberstrike/
├── config.json ← स्वचालित रूप से जनरेटेड वैश्विक कॉन्फ़िग
├── cyberstrike.json ← वैश्विक कॉन्फ़िग
├── cyberstrike.jsonc ← वैश्विक कॉन्फ़िग (पसंदीदा)
├── agents/ ← कस्टम एजेंट (*.md) (agent/ भी स्वीकार करता है)
├── commands/ ← कस्टम कमांड (*.md) (command/ भी स्वीकार करता है)
└── plugins/ ← प्लगइन (*.ts / *.js) (plugin/ भी स्वीकार करता है)

Cyberstrike अतिरिक्त रूप से आपके होम फ़ोल्डर में ~/.cyberstrike/ डायरेक्टरी को cyberstrike.json/cyberstrike.jsonc और समान agents/, commands/, plugins/ सबफ़ोल्डर के लिए स्कैन करता है।

वैश्विक कॉन्फ़िग बनाना

कोई init कमांड नहीं है — फ़ाइल मैन्युअल रूप से बनाएं:

~/.config/cyberstrike/cyberstrike.jsonc
{
// Cyberstrike वैश्विक कॉन्फ़िग
"$schema": "https://cyberstrike.io/config.json",
"model": "anthropic/claude-sonnet-4-20250514"
}

मॉडल कॉन्फ़िगरेशन

डिफ़ॉल्ट मॉडल

{
"model": "anthropic/claude-sonnet-4-20250514"
}

प्रारूप: provider/model।

छोटा मॉडल

सत्र शीर्षक जनरेशन जैसे हल्के कार्यों के लिए उपयोग किया जाता है:

{
"small_model": "anthropic/claude-haiku-4-5-20251001"
}

प्रदाता कॉन्फ़िगरेशन

प्रदाताओं को provider के अंतर्गत अलग-अलग कॉन्फ़िगर करें। options ऑब्जेक्ट प्रदाता SDK को पास-थ्रू किया जाता है:

{
"provider": {
"anthropic": {
"options": {
"apiKey": "{env:ANTHROPIC_API_KEY}"
}
}
}
}

प्रदाता सक्षम / अक्षम करना

{
"disabled_providers": ["ollama"],
"enabled_providers": ["anthropic", "openai"]
}

जब enabled_providers सेट होता है, केवल वे प्रदाता लोड होते हैं; बाकी सभी अनदेखे होते हैं। प्रति-प्रदाता विवरण के लिए AI प्रदाता देखें।

थीम

theme एक इंस्टॉल की गई थीम का नाम है (एक स्ट्रिंग)। डिफ़ॉल्ट cyberstrike है:

{
"theme": "cyberstrike"
}

TUI में /themes कमांड (या <leader>t) से थीम ब्राउज़ करें और बदलें। बिल्ट-इन थीम में cyberstrike, tokyonight, catppuccin, dracula, gruvbox, nord, github, monokai, matrix, rosepine, solarized, और अधिक शामिल हैं।

कीबाइंडिंग

लीडर कुंजी

{
"keybinds": {
"leader": "ctrl+x"
}
}

कस्टम बाइंडिंग

{
"keybinds": {
"leader": "ctrl+a",
"session_new": "<leader>n",
"session_list": "<leader>l",
"model_list": "<leader>m",
"theme_list": "<leader>t",
"app_exit": "ctrl+c,ctrl+d,<leader>q"
}
}

सभी क्रियाओं और डिफ़ॉल्ट की पूरी सूची के लिए कीबाइंडिंग देखें।

अनुमति डिफ़ॉल्ट

अनुमतियां एक टूल नाम को क्रिया (ask, allow, या deny) या glob → क्रिया मैप से मैप करती हैं। कोई अलग allow/deny सूची नहीं है — टूल कुंजी ही ग्रुपिंग है:

{
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"bash": {
"*": "ask",
"rm -rf *": "deny"
},
"edit": {
"*": "ask",
"~/.ssh/**": "deny"
}
}
}

वाइल्डकार्ड के रूप में केवल * और ? समर्थित हैं। पूर्ण मॉडल और अनुमति कुंजियों की सूची के लिए अनुमतियां देखें।

MCP सर्वर

MCP सर्वर mcp के अंतर्गत फ़्लैट मैप के रूप में घोषित होते हैं, सर्वर नाम से कीड। स्थानीय सर्वर एकल command ऐरे (कमांड + आर्ग्स एक साथ) के साथ type: "local" उपयोग करते हैं; रिमोट सर्वर url के साथ type: "remote" उपयोग करते हैं:

{
"mcp": {
"filesystem": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "~"],
"environment": { "DEBUG": "true" },
"enabled": true
},
"remote-api": {
"type": "remote",
"url": "https://api.example.com/mcp",
"enabled": true
}
}
}

Bolt सर्वर mcp के बजाय शीर्ष-स्तरीय bolt कुंजी के अंतर्गत अलग से कॉन्फ़िगर होते हैं। Bolt / MCP देखें।

डिफ़ॉल्ट एजेंट

डिफ़ॉल्ट एजेंट सेट करें (प्राथमिक एजेंट होना चाहिए; सेट न होने या अमान्य होने पर cyberstrike पर वापस आता है):

{
"default_agent": "cyberstrike"
}

कस्टम एजेंट कॉन्फ़िग डायरेक्टरी में agents/ (या agent/) डायरेक्टरी से लोड होते हैं — कस्टम एजेंट देखें।

कॉम्पैक्शन

स्वचालित संदर्भ कॉम्पैक्शन नियंत्रित करें:

{
"compaction": {
"auto": true,
"prune": true
}
}
विकल्पविवरण
autoसंदर्भ भरने पर स्वचालित रूप से कॉम्पैक्ट करें (डिफ़ॉल्ट: true)
pruneपुराने टूल आउटपुट प्रून करें (डिफ़ॉल्ट: true)

लॉगिंग और अपडेट

{
"logLevel": "INFO",
"autoupdate": "notify"
}

logLevel DEBUG, INFO, WARN, ERROR में से एक है (डिफ़ॉल्ट INFO)। autoupdate true, false, या "notify" स्वीकार करता है।

पूर्ण उदाहरण

~/.config/cyberstrike/cyberstrike.jsonc
{
"$schema": "https://cyberstrike.io/config.json",
"model": "anthropic/claude-sonnet-4-20250514",
"small_model": "anthropic/claude-haiku-4-5-20251001",
"default_agent": "cyberstrike",
"theme": "cyberstrike",
"share": "manual",
"autoupdate": "notify",
"provider": {
"anthropic": {
"options": {
"apiKey": "{env:ANTHROPIC_API_KEY}"
}
}
},
"permission": {
"read": "allow",
"edit": { "*": "ask" },
"bash": { "*": "ask", "rm -rf *": "deny" }
},
"mcp": {
"filesystem": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "."],
"enabled": true
}
},
"keybinds": { "leader": "ctrl+x" },
"compaction": { "auto": true, "prune": true }
}

बैकअप

Terminal window
cp ~/.config/cyberstrike/cyberstrike.jsonc ~/.config/cyberstrike/cyberstrike.jsonc.backup

सुरक्षा विचार

फ़ाइल अनुमतियां

Terminal window
chmod 600 ~/.config/cyberstrike/cyberstrike.jsonc
chmod 700 ~/.config/cyberstrike/

संवेदनशील डेटा

API कुंजियां सीधे कभी संग्रहीत न करें — इसके बजाय पर्यावरण चर संदर्भित करें:

{
"provider": {
"anthropic": {
"options": {
"apiKey": "{env:ANTHROPIC_API_KEY}"
}
}
}
}

Caution

API कुंजियों जैसे संवेदनशील डेटा के लिए हमेशा पर्यावरण चर संदर्भ ({env:VAR}) का उपयोग करें।

संबंधित दस्तावेज़