Seshat AIDocumentation

Documentation / Reference

Environment variables

The environment variables Seshat reads for folders, storage, providers, web search, observability and a few behaviours, with their defaults.

Environment variables are the simplest way to configure Seshat on a server or in a script. This page lists the ones that Configuration, Security and trust and Using the CLI do not already describe: the model and key variables, the gRPC variables and the RAG_* variables are there.

Folders and files

The runtime folder is described in Configuration. Its location is set by SESHAT_RUNTIME_ROOT.

VariableDefaultEffect
SESHAT_GLOBAL_CONFIGthe runtime folderThe folder that holds the global seshat.json. See Configuration file
SESHAT_GLOBAL_DATAthe runtime folderThe folder of the data configuration, used when an application overrides settings instead of updating the global file
SESHAT_CACHE_DIRcache in the runtime folderWhere the cache is kept
SESHAT_SKILLS_DIRthe usual skill foldersWhen set, the terminal interface uses this one folder for global skills
SESHAT_MEMORY_PATHmemory in the runtime folderWhere long-term memory is kept
SESHAT_AUTH_PATHnoneWhere auth.json is kept, the file that holds sign-in tokens
SESHAT_MASTER_KEYa key derived from the machineThe key that encrypts the stored credentials: 64 hexadecimal characters, which is 32 bytes. Any other length is refused. Set it on a server so that the credentials do not depend on the machine

Storage of files made by the agent

By default the files the agent produces are kept in a local folder. See ClientConfig for the StorageConfig field that sets the same thing from Go.

VariableDefaultEffect
SESHAT_STORAGE_PROVIDERlocals3 keeps the files in an S3 bucket. Any other value, or none, keeps them locally
SESHAT_STORAGE_LOCAL_PATHthe runtime folderThe folder of the local storage
SESHAT_S3_ENDPOINTnoneThe address of the S3 service
SESHAT_S3_BUCKETnoneThe bucket
SESHAT_S3_ACCESS_KEY_ID, SESHAT_S3_SECRET_ACCESS_KEYnoneThe credentials
SESHAT_S3_REGIONnoneThe region
SESHAT_S3_KEY_PREFIXnoneA prefix added to the keys of the stored objects

Providers

The variables that carry the key of each provider are in the table of Configuration. These add to it.

VariableDefaultEffect
OLLAMA_HOSThttp://localhost:11434The address of the Ollama server
AWS_PROFILEnoneAn AWS profile. With a region, it makes Bedrock available
AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKENnoneThe rest of the AWS credentials used to sign Bedrock requests, with AWS_ACCESS_KEY_ID
AWS_DEFAULT_REGIONnoneCounts as a region when Seshat checks whether Bedrock is available. The requests themselves use AWS_REGION, so set that one too
AWS_BEARER_TOKEN_BEDROCKnoneA bearer token for Bedrock. When set, the requests use it instead of the AWS signature
ANTHROPIC_VERTEX_API_KEYnoneA bearer token for Vertex AI, used when no key was given another way
SESHAT_DISABLE_DEFAULT_PROVIDERSfalseThe same as options.disable_default_providers in the configuration file
SESHAT_DISABLE_PROVIDER_AUTO_UPDATEfalseThe same as options.disable_provider_auto_update in the configuration file

The provider keys (TAVILY_API_KEY, EXA_API_KEY, JINA_API_KEY, LANGSEARCH_API_KEY) are described in Configuration. To search with your own SearXNG instance or your own endpoint:

VariableDefaultEffect
SEARXNG_URL, SEARXNG_BASE_URLnoneThe base address of a SearXNG instance. SEARXNG_URL wins when both are set
SEARXNG_AUTH_USERNAME, SEARXNG_AUTH_PASSWORDnoneBasic authentication. AUTH_USERNAME and AUTH_PASSWORD are read when these are not set
SEARXNG_USER_AGENTSeshatAI-WebSearch/2.0The User-Agent sent to SearXNG. USER_AGENT is read when it is not set
SEARXNG_HTTP_PROXYnoneA proxy for SearXNG. HTTP_PROXY and HTTPS_PROXY are read when it is not set
SEARXNG_DEFAULT_LANGUAGEallThe language of the results when the call does not give one
WEB_SEARCH_APInoneThe address of a search endpoint of your own. The tool sends it the query as q, and one allowed_domain per allowed domain

Retrieval

VariableDefaultEffect
RAG_RERANK_API_KEYnoneThe key sent to the reranking service named by RAG_RERANK_URL. See Retrieval and knowledge

Observability

VariableDefaultEffect
OTEL_EXPORTER_OTLP_ENDPOINTnoneWhen set, traces are exported to this OpenTelemetry endpoint over gRPC. Without it, nothing is exported
OTEL_EXPORTER_OTLP_INSECUREno TLSThe exporter connects without TLS, which suits a local collector. Set it to false to use TLS
ENVIRONMENTdevelopmentThe environment name written in the logs

Behaviour

VariableDefaultEffect
SESHAT_REPO_MAPoffWith 1, true, yes, on or enabled, a compact map of the repository (about 1,024 tokens) is added to the prompt every turn
SESHAT_CORE_UTILSon Windows onlytrue or false. Whether the shell of the terminal interface uses the core utilities built into Seshat

Next

Updated on 2026-10-13