config.schema.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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": [
  206. "input",
  207. "output"
  208. ],
  209. "additionalProperties": false
  210. },
  211. "limit": {
  212. "type": "object",
  213. "properties": {
  214. "context": {
  215. "type": "number"
  216. },
  217. "output": {
  218. "type": "number"
  219. }
  220. },
  221. "required": [
  222. "context",
  223. "output"
  224. ],
  225. "additionalProperties": false
  226. },
  227. "id": {
  228. "type": "string"
  229. },
  230. "options": {
  231. "type": "object",
  232. "additionalProperties": {}
  233. }
  234. },
  235. "additionalProperties": false
  236. }
  237. },
  238. "options": {
  239. "type": "object",
  240. "additionalProperties": {}
  241. }
  242. },
  243. "required": [
  244. "models"
  245. ],
  246. "additionalProperties": false
  247. },
  248. "description": "Custom provider configurations and model overrides"
  249. },
  250. "mcp": {
  251. "type": "object",
  252. "additionalProperties": {
  253. "anyOf": [
  254. {
  255. "type": "object",
  256. "properties": {
  257. "type": {
  258. "type": "string",
  259. "const": "local",
  260. "description": "Type of MCP server connection"
  261. },
  262. "command": {
  263. "type": "array",
  264. "items": {
  265. "type": "string"
  266. },
  267. "description": "Command and arguments to run the MCP server"
  268. },
  269. "environment": {
  270. "type": "object",
  271. "additionalProperties": {
  272. "type": "string"
  273. },
  274. "description": "Environment variables to set when running the MCP server"
  275. }
  276. },
  277. "required": [
  278. "type",
  279. "command"
  280. ],
  281. "additionalProperties": false
  282. },
  283. {
  284. "type": "object",
  285. "properties": {
  286. "type": {
  287. "type": "string",
  288. "const": "remote",
  289. "description": "Type of MCP server connection"
  290. },
  291. "url": {
  292. "type": "string",
  293. "description": "URL of the remote MCP server"
  294. }
  295. },
  296. "required": [
  297. "type",
  298. "url"
  299. ],
  300. "additionalProperties": false
  301. }
  302. ]
  303. },
  304. "description": "MCP (Model Context Protocol) server configurations"
  305. },
  306. "experimental": {
  307. "type": "object",
  308. "properties": {
  309. "hook": {
  310. "type": "object",
  311. "properties": {
  312. "file_edited": {
  313. "type": "object",
  314. "additionalProperties": {
  315. "type": "array",
  316. "items": {
  317. "type": "object",
  318. "properties": {
  319. "command": {
  320. "type": "array",
  321. "items": {
  322. "type": "string"
  323. }
  324. },
  325. "environment": {
  326. "type": "object",
  327. "additionalProperties": {
  328. "type": "string"
  329. }
  330. }
  331. },
  332. "required": [
  333. "command"
  334. ],
  335. "additionalProperties": false
  336. }
  337. }
  338. },
  339. "session_completed": {
  340. "type": "array",
  341. "items": {
  342. "type": "object",
  343. "properties": {
  344. "command": {
  345. "type": "array",
  346. "items": {
  347. "type": "string"
  348. }
  349. },
  350. "environment": {
  351. "type": "object",
  352. "additionalProperties": {
  353. "type": "string"
  354. }
  355. }
  356. },
  357. "required": [
  358. "command"
  359. ],
  360. "additionalProperties": false
  361. }
  362. }
  363. },
  364. "additionalProperties": false
  365. }
  366. },
  367. "additionalProperties": false
  368. }
  369. },
  370. "additionalProperties": false,
  371. "$schema": "http://json-schema.org/draft-07/schema#"
  372. }