diff --git a/dvc/remote/gs.py b/dvc/remote/gs.py
index 4288bf39a..e2abf722f 100644
--- a/dvc/remote/gs.py
+++ b/dvc/remote/gs.py
@@ -42,7 +42,7 @@ class RemoteGS(RemoteBase):
 
     @property
     def gs(self):
-        return storage.Client()
+        return storage.Client(self.projectname)
 
     def get_md5(self, bucket, path):
         import base64

remote: gs: don't forget to set projectname when connecting to gs
Currently we don't set projectname at all, relying on creds file or env vars.
diff --git a/tests/unit/remote/gs.py b/tests/unit/remote/gs.py
new file mode 100644
index 000000000..c159a08ea
--- /dev/null
+++ b/tests/unit/remote/gs.py
@@ -0,0 +1,25 @@
+import mock
+from unittest import TestCase
+
+from dvc.remote.gs import RemoteGS
+
+
+class TestRemoteGS(TestCase):
+    BUCKET = 'bucket'
+    PREFIX = 'prefix'
+    URL = 'gs://{}/{}'.format(BUCKET, PREFIX)
+    PROJECT = 'PROJECT'
+    CONFIG = {'projectname': PROJECT, 'url': URL}
+
+    def test_init(self):
+        remote = RemoteGS(None, self.CONFIG)
+        self.assertEqual(remote.url, self.URL)
+        self.assertEqual(remote.prefix, self.PREFIX)
+        self.assertEqual(remote.bucket, self.BUCKET)
+        self.assertEqual(remote.projectname, self.PROJECT)
+
+    @mock.patch('google.cloud.storage.Client')
+    def test_gs(self, mock_client):
+        remote = RemoteGS(None, self.CONFIG)
+        remote.gs()
+        mock_client.assert_called_with(self.PROJECT)

pip install -e .[all]
parse_log_pytest
requirements.txt
pytest>=3.3.1 nose>=1.3.7 mock>=2.0.0 coverage>=4.5.1 codecov>=2.0.15 xmltodict>=0.11.0 awscli>=1.14.18 google-compute-engine Pygments collective.checkdocs pytest
apt-get update apt-get install -y gcc
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
altgraph==0.17.4
appdirs==1.4.4
asciimatics==1.14.0
awscli==1.31.13
azure-common==1.1.28
azure-nspkg==3.0.2
azure-storage-blob==1.3.0
azure-storage-common==1.3.0
azure-storage-nspkg==3.1.0
bcrypt==4.2.1
boto==2.49.0
boto3==1.7.4
botocore==1.10.84
cachetools==5.5.2
certifi @ file:///croot/certifi_1671487769961/work/certifi
cffi==1.15.1
charset-normalizer==3.4.1
codecov==2.1.13
collective.checkdocs==0.2
colorama==0.4.4
configobj==5.0.9
configparser==5.3.0
coverage==7.2.7
cryptography==44.0.2
decorator==5.1.1
distro==1.9.0
docutils==0.16
-e git+https://github.com/iterative/dvc.git@fdb103ed666072d294f39317f15ece6be7c1701e#egg=dvc
exceptiongroup==1.2.2
future==1.0.0
gitdb==4.0.12
GitPython==3.1.44
google-api-core==1.34.1
google-auth==2.38.0
google-cloud-core==0.28.1
google-cloud-storage==1.13.0
google-compute-engine==2.8.13
google-crc32c==1.5.0
google-resumable-media==2.7.2
googleapis-common-protos==1.69.2
grandalf==0.6
idna==3.10
importlib-metadata==6.7.0
iniconfig==2.0.0
jmespath==0.10.0
jsonpath-rw==1.4.0
macholib==1.16.3
mock==5.2.0
nanotime==0.5.2
networkx==2.6.3
nose==1.3.7
packaging==24.0
paramiko==3.5.1
pefile==2024.8.26
Pillow==9.5.0
pluggy==1.2.0
ply==3.11
protobuf==3.20.3
pyasn1==0.5.1
pyasn1-modules==0.3.0
pycparser==2.21
pydot==2.0.0
pyfiglet==0.8.post1
Pygments==2.17.2
PyInstaller==3.3.1
PyNaCl==1.5.0
pyparsing==3.1.4
pytest==7.4.4
python-dateutil==2.9.0.post0
PyYAML==6.0.1
requests==2.31.0
rsa==4.7.2
s3transfer==0.1.13
schema==0.7.7
six==1.17.0
smmap==5.0.2
tomli==2.0.1
typing_extensions==4.7.1
urllib3==1.26.20
wcwidth==0.2.13
xmltodict==0.14.2
zc.lockfile==3.0.post1
zipp==3.15.0

name: dvc
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - altgraph==0.17.4
      - appdirs==1.4.4
      - asciimatics==1.14.0
      - awscli==1.31.13
      - azure-common==1.1.28
      - azure-nspkg==3.0.2
      - azure-storage-blob==1.3.0
      - azure-storage-common==1.3.0
      - azure-storage-nspkg==3.1.0
      - bcrypt==4.2.1
      - boto==2.49.0
      - boto3==1.7.4
      - botocore==1.10.84
      - cachetools==5.5.2
      - cffi==1.15.1
      - charset-normalizer==3.4.1
      - codecov==2.1.13
      - collective-checkdocs==0.2
      - colorama==0.4.4
      - configobj==5.0.9
      - configparser==5.3.0
      - coverage==7.2.7
      - cryptography==44.0.2
      - decorator==5.1.1
      - distro==1.9.0
      - docutils==0.16
      - exceptiongroup==1.2.2
      - future==1.0.0
      - gitdb==4.0.12
      - gitpython==3.1.44
      - google-api-core==1.34.1
      - google-auth==2.38.0
      - google-cloud-core==0.28.1
      - google-cloud-storage==1.13.0
      - google-compute-engine==2.8.13
      - google-crc32c==1.5.0
      - google-resumable-media==2.7.2
      - googleapis-common-protos==1.69.2
      - grandalf==0.6
      - idna==3.10
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - jmespath==0.10.0
      - jsonpath-rw==1.4.0
      - macholib==1.16.3
      - mock==5.2.0
      - nanotime==0.5.2
      - networkx==2.6.3
      - nose==1.3.7
      - packaging==24.0
      - paramiko==3.5.1
      - pefile==2024.8.26
      - pillow==9.5.0
      - pluggy==1.2.0
      - ply==3.11
      - protobuf==3.20.3
      - pyasn1==0.5.1
      - pyasn1-modules==0.3.0
      - pycparser==2.21
      - pydot==2.0.0
      - pyfiglet==0.8.post1
      - pygments==2.17.2
      - pyinstaller==3.3.1
      - pynacl==1.5.0
      - pyparsing==3.1.4
      - pytest==7.4.4
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.1
      - requests==2.31.0
      - rsa==4.7.2
      - s3transfer==0.1.13
      - schema==0.7.7
      - six==1.17.0
      - smmap==5.0.2
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==1.26.20
      - wcwidth==0.2.13
      - xmltodict==0.14.2
      - zc-lockfile==3.0.post1
      - zipp==3.15.0
prefix: /opt/conda/envs/dvc

tests/unit/remote/gs.py::TestRemoteGS::test_gs
tests/unit/remote/gs.py::TestRemoteGS::test_init
dvc/remote/gs.py
dvc/remote/gs.py