Skip to main content

.cortexrc

warning

🚧 Cortex.cpp is currently under development. Our documentation outlines the intended behavior of Cortex, which may not yet be fully implemented in the codebase.

Cortex.cpp supports reading its configuration from a file called .cortexrc. Using this file, you can also change the data folder, Cortex.cpp API server port, and host.

File Location​

The configuration file is stored in the following locations:

  • Windows: C:\Users\<username>\.cortexrc
  • Linux: /home/<username>/.cortexrc
  • macOS: /Users/<username>/.cortexrc

Configuration Parameters​

You can configure the following parameters in the .cortexrc file:

ParameterDescriptionDefault Value
dataFolderPathPath to the folder where .cortexrc located.User's home folder.
apiServerHostHost address for the Cortex.cpp API server.127.0.0.1
apiServerPortPort number for the Cortex.cpp API server.39281
logFolderPathPath the folder where logs are locatedUser's home folder.
logLlamaCppPathThe llama-cpp engine ../logs/cortex.log
logTensorrtLLMPathThe tensorrt-llm engine log file path../logs/cortex.log
logOnnxPathThe onnxruntime engine log file path../logs/cortex.log
maxLogLinesThe maximum log lines that write to file.100000
checkedForUpdateAtThe last time for checking updates.0
latestReleaseThe lastest release vesion.Empty string
huggingFaceTokenHuggingFace token.Empty string

Example of the .cortexrc file:


logFolderPath: /Users/<username>/cortexcpp
logLlamaCppPath: ./logs/cortex.log
logTensorrtLLMPath: ./logs/cortex.log
logOnnxPath: ./logs/cortex.log
dataFolderPath: /Users/<username>/cortexcpp
maxLogLines: 100000
apiServerHost: 127.0.0.1
apiServerPort: 39281
checkedForUpdateAt: 1730501224
latestRelease: v1.0.1
huggingFaceToken: ""