Skip to content

feature: Ability to pass credentials without storing in environment file #318

@ArykLAnderson

Description

@ArykLAnderson

Please ignore if there is already a means to do this, but it would be nice to be able to use environment variable or bash command references for retrieving the credentials that are used to authenticate with providers and MCP servers

Ex:

  "provider": {
    "litellm": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://my.companies.litellm.endpoint",
        "apiKey": "$(pass litellm)"
      },
      "models": {
        "gemini-2.5-pro": {},
        "gemini-2.5-flash": {},
        "claude-4.0-sonnet": {},
        "claude-4.0-opus": {},
        "o4-mini-high": {},
        "o4-mini": {}
      }
    }
  },
"mcp": {
    "spanner-server": {
      "type": "local",
      "command": ["node", "/location/spanner-server/build/index.js"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "$GOOGLE_CLOUD_PROJECT",
        "SPANNER_INSTANCE": "$MCP_SPANNER_INSTANCE",
        "SPANNER_DATABASE": "$MCP_SPANNER_DATABASE",
        "GOOGLE_APPLICATION_CREDENTIALS": "$(pass google/spanner/mcp)"
      }
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions