tinyhumansai/openhuman · error

Querit search unavailable: no API key configured. Set QUERIT

Error message

Querit search unavailable: no API key configured. Set QUERIT_API_KEY or OPENHUMAN_QUERIT_API_KEY, or add search.querit.api_key to config.toml.

What it means

Configuration guard in QueritTool::execute_with_options: after the query passes validation, the tool looks up its Querit API credential (env QUERIT_API_KEY / OPENHUMAN_QUERIT_API_KEY or search.querit.api_key in config.toml) and finds none configured. The Querit backend requires bearer auth, so the search is aborted before any network request.

Source

Thrown at src/openhuman/search/tools/querit.rs:435

    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
        self.execute_with_options(args, ToolCallOptions::default())
            .await
    }

    async fn execute_with_options(
        &self,
        args: serde_json::Value,
        options: ToolCallOptions,
    ) -> anyhow::Result<ToolResult> {
        let query = args
            .get("query")
            .and_then(Value::as_str)
            .map(str::trim)
            .filter(|q| !q.is_empty())
            .ok_or_else(|| anyhow::anyhow!("Missing required parameter: query"))?;

        let api_key = self.api_key.as_deref().ok_or_else(|| {
            anyhow::anyhow!(
                "Querit search unavailable: no API key configured. \
                 Set QUERIT_API_KEY or OPENHUMAN_QUERIT_API_KEY, \
                 or add search.querit.api_key to config.toml."
            )
        })?;

        let max_results = args
            .get("max_results")
            .or_else(|| args.get("count"))
            .and_then(Value::as_u64)
            .map(|n| n.clamp(1, 20) as usize)
            .unwrap_or(self.max_results);

        let mut body = json!({
            "query": query,
            "count": max_results,
        });
        if let Some(filters) = Self::build_filters(&args) {

View on GitHub (pinned to 7491200858)

Solutions

  1. Export QUERIT_API_KEY (or OPENHUMAN_QUERIT_API_KEY) in the environment before starting the core.
  2. Add search.querit.api_key = "..." to the workspace config.toml.
  3. If Querit is not the intended provider, use a different search tool or configure a fallback backend.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/search/tools/querit.rs:435 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/f8847e037c12d244. Report an issue: GitHub.