config.schema.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. {
  2. "type": "object",
  3. "properties": {
  4. "$schema": {
  5. "type": "string",
  6. "description": "JSON schema reference for configuration validation"
  7. },
  8. "theme": {
  9. "type": "string",
  10. "description": "Theme name to use for the interface"
  11. },
  12. "keybinds": {
  13. "type": "object",
  14. "properties": {
  15. "leader": {
  16. "type": "string",
  17. "description": "Leader key for keybind combinations"
  18. },
  19. "help": {
  20. "type": "string",
  21. "description": "Show help dialog"
  22. },
  23. "editor_open": {
  24. "type": "string",
  25. "description": "Open external editor"
  26. },
  27. "session_new": {
  28. "type": "string",
  29. "description": "Create a new session"
  30. },
  31. "session_list": {
  32. "type": "string",
  33. "description": "List all sessions"
  34. },
  35. "session_share": {
  36. "type": "string",
  37. "description": "Share current session"
  38. },
  39. "session_interrupt": {
  40. "type": "string",
  41. "description": "Interrupt current session"
  42. },
  43. "session_compact": {
  44. "type": "string",
  45. "description": "Toggle compact mode for session"
  46. },
  47. "tool_details": {
  48. "type": "string",
  49. "description": "Show tool details"
  50. },
  51. "model_list": {
  52. "type": "string",
  53. "description": "List available models"
  54. },
  55. "theme_list": {
  56. "type": "string",
  57. "description": "List available themes"
  58. },
  59. "project_init": {
  60. "type": "string",
  61. "description": "Initialize project configuration"
  62. },
  63. "input_clear": {
  64. "type": "string",
  65. "description": "Clear input field"
  66. },
  67. "input_paste": {
  68. "type": "string",
  69. "description": "Paste from clipboard"
  70. },
  71. "input_submit": {
  72. "type": "string",
  73. "description": "Submit input"
  74. },
  75. "input_newline": {
  76. "type": "string",
  77. "description": "Insert newline in input"
  78. },
  79. "history_previous": {
  80. "type": "string",
  81. "description": "Navigate to previous history item"
  82. },
  83. "history_next": {
  84. "type": "string",
  85. "description": "Navigate to next history item"
  86. },
  87. "messages_page_up": {
  88. "type": "string",
  89. "description": "Scroll messages up by one page"
  90. },
  91. "messages_page_down": {
  92. "type": "string",
  93. "description": "Scroll messages down by one page"
  94. },
  95. "messages_half_page_up": {
  96. "type": "string",
  97. "description": "Scroll messages up by half page"
  98. },
  99. "messages_half_page_down": {
  100. "type": "string",
  101. "description": "Scroll messages down by half page"
  102. },
  103. "messages_previous": {
  104. "type": "string",
  105. "description": "Navigate to previous message"
  106. },
  107. "messages_next": {
  108. "type": "string",
  109. "description": "Navigate to next message"
  110. },
  111. "messages_first": {
  112. "type": "string",
  113. "description": "Navigate to first message"
  114. },
  115. "messages_last": {
  116. "type": "string",
  117. "description": "Navigate to last message"
  118. },
  119. "app_exit": {
  120. "type": "string",
  121. "description": "Exit the application"
  122. }
  123. },
  124. "additionalProperties": false,
  125. "description": "Custom keybind configurations"
  126. },
  127. "autoshare": {
  128. "type": "boolean",
  129. "description": "Share newly created sessions automatically"
  130. },
  131. "autoupdate": {
  132. "type": "boolean",
  133. "description": "Automatically update to the latest version"
  134. },
  135. "disabled_providers": {
  136. "type": "array",
  137. "items": {
  138. "type": "string"
  139. },
  140. "description": "Disable providers that are loaded automatically"
  141. },
  142. "model": {
  143. "type": "string",
  144. "description": "Model to use in the format of provider/model, eg anthropic/claude-2"
  145. },
  146. "provider": {
  147. "type": "object",
  148. "additionalProperties": {
  149. "type": "object",
  150. "properties": {
  151. "api": {
  152. "type": "string"
  153. },
  154. "name": {
  155. "type": "string"
  156. },
  157. "env": {
  158. "type": "array",
  159. "items": {
  160. "type": "string"
  161. }
  162. },
  163. "id": {
  164. "type": "string"
  165. },
  166. "npm": {
  167. "type": "string"
  168. },
  169. "models": {
  170. "type": "object",
  171. "additionalProperties": {
  172. "type": "object",
  173. "properties": {
  174. "name": {
  175. "type": "string"
  176. },
  177. "attachment": {
  178. "type": "boolean"
  179. },
  180. "reasoning": {
  181. "type": "boolean"
  182. },
  183. "temperature": {
  184. "type": "boolean"
  185. },
  186. "tool_call": {
  187. "type": "boolean"
  188. },
  189. "cost": {
  190. "type": "object",
  191. "properties": {
  192. "input": {
  193. "type": "number"
  194. },
  195. "output": {
  196. "type": "number"
  197. },
  198. "cache_read": {
  199. "type": "number"
  200. },
  201. "cache_write": {
  202. "type": "number"
  203. }
  204. },
  205. "required": ["input", "output"],
  206. "additionalProperties": false
  207. },
  208. "limit": {
  209. "type": "object",
  210. "properties": {
  211. "context": {
  212. "type": "number"
  213. },
  214. "output": {
  215. "type": "number"
  216. }
  217. },
  218. "required": ["context", "output"],
  219. "additionalProperties": false
  220. },
  221. "id": {
  222. "type": "string"
  223. },
  224. "options": {
  225. "type": "object",
  226. "additionalProperties": {}
  227. }
  228. },
  229. "additionalProperties": false
  230. }
  231. },
  232. "options": {
  233. "type": "object",
  234. "additionalProperties": {}
  235. }
  236. },
  237. "required": ["models"],
  238. "additionalProperties": false
  239. },
  240. "description": "Custom provider configurations and model overrides"
  241. },
  242. "mcp": {
  243. "type": "object",
  244. "additionalProperties": {
  245. "anyOf": [
  246. {
  247. "type": "object",
  248. "properties": {
  249. "type": {
  250. "type": "string",
  251. "const": "local",
  252. "description": "Type of MCP server connection"
  253. },
  254. "command": {
  255. "type": "array",
  256. "items": {
  257. "type": "string"
  258. },
  259. "description": "Command and arguments to run the MCP server"
  260. },
  261. "environment": {
  262. "type": "object",
  263. "additionalProperties": {
  264. "type": "string"
  265. },
  266. "description": "Environment variables to set when running the MCP server"
  267. },
  268. "enabled": {
  269. "type": "boolean",
  270. "description": "Enable or disable the MCP server on startup"
  271. }
  272. },
  273. "required": ["type", "command"],
  274. "additionalProperties": false
  275. },
  276. {
  277. "type": "object",
  278. "properties": {
  279. "type": {
  280. "type": "string",
  281. "const": "remote",
  282. "description": "Type of MCP server connection"
  283. },
  284. "url": {
  285. "type": "string",
  286. "description": "URL of the remote MCP server"
  287. },
  288. "enabled": {
  289. "type": "boolean",
  290. "description": "Enable or disable the MCP server on startup"
  291. }
  292. },
  293. "required": ["type", "url"],
  294. "additionalProperties": false
  295. }
  296. ]
  297. },
  298. "description": "MCP (Model Context Protocol) server configurations"
  299. },
  300. "experimental": {
  301. "type": "object",
  302. "properties": {
  303. "hook": {
  304. "type": "object",
  305. "properties": {
  306. "file_edited": {
  307. "type": "object",
  308. "additionalProperties": {
  309. "type": "array",
  310. "items": {
  311. "type": "object",
  312. "properties": {
  313. "command": {
  314. "type": "array",
  315. "items": {
  316. "type": "string"
  317. }
  318. },
  319. "environment": {
  320. "type": "object",
  321. "additionalProperties": {
  322. "type": "string"
  323. }
  324. }
  325. },
  326. "required": ["command"],
  327. "additionalProperties": false
  328. }
  329. }
  330. },
  331. "session_completed": {
  332. "type": "array",
  333. "items": {
  334. "type": "object",
  335. "properties": {
  336. "command": {
  337. "type": "array",
  338. "items": {
  339. "type": "string"
  340. }
  341. },
  342. "environment": {
  343. "type": "object",
  344. "additionalProperties": {
  345. "type": "string"
  346. }
  347. }
  348. },
  349. "required": ["command"],
  350. "additionalProperties": false
  351. }
  352. }
  353. },
  354. "additionalProperties": false
  355. }
  356. },
  357. "additionalProperties": false
  358. }
  359. },
  360. "additionalProperties": false,
  361. "$schema": "http://json-schema.org/draft-07/schema#"
  362. }