Skip to content

langflow api-key not usable for backend on deployed server #12341

@tedgoddard

Description

@tedgoddard

Bug Description

│   292 │   │   │   additionalInfo = ''                                                                      │
│   293 │   │   │   if sys.platform == 'linux':                                                              │
│   294 │   │   │   │   additionalInfo = '\nOn Linux, you can run `sudo apt-get install xclip`,              │
│ ❱ 295 │   │   │   raise PyperclipException('Pyperclip could not find a copy/paste mechanism fo             │
│   296 │   │                                                                                                │
│   297 │   │   if _IS_RUNNING_PYTHON_2:                                                                     │
│   298 │   │   │   def __nonzero__(self):                                                                   │

Even though this is a CLI command, it attempts to find a desktop clipboard via pyperclip. The fallback should be to write the api-key to stdout (and it is up to the admin to ensure they do that securely).

Reproduction

  1. run the command langflow api-key in docker or over ssh

Expected behavior

langflow api-key should be functional for remotely deployed systems.

Who can help?

No response

Operating System

Linux ml-langflow-backend-deployment-6866479878-7wbxx 6.12.63 #1 SMP PREEMPT_DYNAMIC Thu Jan 22 00:56:26 UTC 2026 x86_64 GNU/Linux

Langflow Version

1.8.1

Python Version

None

Screenshot

No response

Flow File

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions