Filen - Unable to configure remote

What is the problem you are having with rclone?

Hello, i’m using RClone for the first time and trying to setup Filen as a remote but getting stuck apparently at the very first authentication step, with a getMasterKeys error.

I tried multiple times to do the configuration from both the web ui and also via CLI, and in both cases ended up with an identical rclone.conf file.

I quadruple checked all login details and api keys, they are all correct, and according to the docs i shouldn’t need any other field on the advanced section. 2FA is enabled on filen.

The error message is the same no matter what operation i try to do (open/refresh/try to create folder)

From the CLI i tried to open the “veromos” folder that is present in the root of my filen storage but also get the same error attached below

Can you please let me know if i’m missing some intermediary steps before this can work?

Thank you

Run the command 'rclone version' and share the full output of the command.

PS D:\Downloads\rclone-v1.74.1-windows-amd64> .\rclone.exe version
rclone v1.74.1

  • os/version: Microsoft Windows 11 IoT Enterprise LTSC 2024 24H2 24H2 (64 bit)
  • os/kernel: 10.0.26100.8246 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.26.3
  • go/linking: static
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

.\rclone.exe ls Filen:veromos

The rclone config contents with secrets removed.

[Filen]
type = filen
email = email@addr
password = pass
api_key = api key

A log from the command with the -vv flag

PS D:\Downloads\rclone-v1.74.1-windows-amd64> .\rclone.exe ls Filen:veromos -vv
2026/05/13 18:47:30 DEBUG : rclone: Version "v1.74.1" starting with parameters ["D:\\Downloads\\rclone-v1.74.1-windows-amd64\\rclone.exe" "ls" "Filen:veromos" "-vv"]
2026/05/13 18:47:30 DEBUG : Creating backend with remote "Filen:veromos"
2026/05/13 18:47:30 DEBUG : Using config file from "C:\\Users\\Davide\\AppData\\Roaming\\rclone\\rclone.conf"
2026/05/13 18:47:31 CRITICAL: Failed to create file system for "Filen:veromos": getMasterKeys: failed to get master keys: https://gateway.filen.io/v3/user/masterKeys: Cannot send request (Post "https://gateway.filen.io/v3/user/masterKeys": net/http: invalid header field value for "Authorization")

welcome to the forum,

i just created a new filen remote and it is working fine.

rclone config redacted filen:
[filen]
type = filen
email = redacted
password = XXX
api_key = XXX
rclone copy d:\data\file.ext filen:zork -vv
DEBUG : rclone: Version "v1.74.1" starting with parameters ["rclone" "copy" "d:\\data\\file.ext" "filen:zork" "-vv"]
DEBUG : Creating backend with remote "d:\\data\\file.ext"
DEBUG : Using config file from "d:\\data\\rclone\\rclone.conf"
DEBUG : fs cache: renaming child cache item "d:\\data\\file.ext" to be canonical for parent "//?/d:/data"
DEBUG : Creating backend with remote "filen:zork"
DEBUG : file.ext: Need to transfer - File not found at Destination
DEBUG : file.ext: size = 1 OK
DEBUG : file.ext: blake3 = d63bd9a826af91c1fea371965a64e11ee20f13e46b5f52c59901136605b3a487 OK
INFO  : file.ext: Copied (new)
INFO  :
Transferred:              1 B / 1 B, 100%, 1 B/s, ETA 0s
Transferred:            1 / 1, 100%
Elapsed time:         1.1s

Hmm, interesting.

I wonder if it’s something related to my account then, can’t really think on what it could be though other than maybe the age of it, it was activated on June 2023

contact flien tech support

Update - this issue has been solved by simply deleting and recreating the remote from rclone cli, as suggested by Filen support.

Apparently the issue was some corruption or extra invisible character possibly being added when copy/pasting it directly into powershell.

I resolved by copying the API key from filen-cli and pasted it on a notepad, then copied it again from there and put into rclone cli.

Thanks for helping to diagnose @asdffdsa